No known key found for this signature in database
GPG Key ID: B4C3BF012D9B26BE
2 changed files with
2 additions and
0 deletions
-
src/main/java/de/hsfulda/informatik/LdapSync.java
-
src/test/java/de/hsfulda/informatik/LdapSyncTest.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"))); |
|
|
|
|
|
@ -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()); |
|
|
|