- // manage DN attributes
- if (attributeId.equals("dn")) {
- if (currentDn != null) {
- Attributes previous = res.put(currentDn,
- currentAttributes);
- if (previous != null) {
- log.warn("There was already an entry with DN "
- + currentDn
- + ", which has been discarded by a subsequent one.");
- }
+ // manage DN attributes
+ if (attributeId.equals("dn") || isLastLine) {
+ if (currentDn != null) {
+ Attributes previous = res.put(currentDn,
+ currentAttributes);
+ if (log.isTraceEnabled())
+ log.trace("Added " + currentDn);
+ if (previous != null) {
+ log.warn("There was already an entry with DN "
+ + currentDn
+ + ", which has been discarded by a subsequent one.");