diff --git a/src/main/java/de/hsfulda/informatik/LdapSync.java b/src/main/java/de/hsfulda/informatik/LdapSync.java index f4a4cc8..4f9bb87 100644 --- a/src/main/java/de/hsfulda/informatik/LdapSync.java +++ b/src/main/java/de/hsfulda/informatik/LdapSync.java @@ -76,6 +76,7 @@ public class LdapSync { e.addAttribute(new Attribute("objectClass", "inetOrgPerson")); e.addAttribute(new Attribute("objectClass", "shadowAccount")); e.addAttribute(new Attribute("objectClass", "top")); + e.addAttribute(new Attribute("objectClass", "person")); e.addAttribute(new Attribute("objectClass", "posixAccount")); e.addAttribute(new Attribute("cn", cn)); e.addAttribute(new Attribute("sn", s.getAttributeValue("sn"))); diff --git a/src/test/java/de/hsfulda/informatik/LdapSyncTest.java b/src/test/java/de/hsfulda/informatik/LdapSyncTest.java index 437df3b..c6b040e 100644 --- a/src/test/java/de/hsfulda/informatik/LdapSyncTest.java +++ b/src/test/java/de/hsfulda/informatik/LdapSyncTest.java @@ -62,6 +62,7 @@ public class LdapSyncTest { assertTrue(objectClasses.contains("shadowAccount")); assertTrue(objectClasses.contains("posixAccount")); assertTrue(objectClasses.contains("top")); + assertTrue(objectClasses.contains("person")); assertTrue(objectClasses.contains("inetOrgPerson")); final List attributes = entry.getAttributes().stream().map(a -> a.getName()).collect(Collectors.toList());