always add mandatory attribute 'objectclass'

This commit is contained in:
Konrad Windszus
2016-10-13 14:20:23 +02:00
committed by Rob Winch
parent dd7091513b
commit 9ab8cabedb

View File

@@ -122,6 +122,8 @@ public class DefaultObjectDirectoryMapper implements ObjectDirectoryMapper {
managedAttributeNames.addAll(Arrays.asList(attributesOfField));
}
}
// always add the mandatory attribute objectclass (which is always used for the mapping)
managedAttributeNames.add(OBJECT_CLASS_ATTRIBUTE);
return managedAttributeNames.toArray(new String[managedAttributeNames.size()]);
}