Browse Source

Added objectClass person

main
Christian Pape 3 years ago
committed by Dustin Frisch
parent
commit
8805c4cd22
No known key found for this signature in database GPG Key ID: B4C3BF012D9B26BE
  1. 1
      src/main/java/de/hsfulda/informatik/LdapSync.java
  2. 1
      src/test/java/de/hsfulda/informatik/LdapSyncTest.java

1
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")));

1
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<String> attributes = entry.getAttributes().stream().map(a -> a.getName()).collect(Collectors.toList());

Loading…
Cancel
Save