No known key found for this signature in database
GPG Key ID: B4C3BF012D9B26BE
2 changed files with
2 additions and
4 deletions
-
src/main/java/de/hsfulda/informatik/AccountSource.java
-
src/main/java/de/hsfulda/informatik/LdapSync.java
|
|
@ -52,8 +52,6 @@ public class AccountSource { |
|
|
|
.map(e -> e.getAttribute("cn").getValue().toLowerCase()) |
|
|
|
.filter(e -> e.startsWith("fd")) |
|
|
|
.collect(Collectors.toSet()); |
|
|
|
|
|
|
|
System.out.println(users.size() + " user(s) retrieved"); |
|
|
|
} |
|
|
|
|
|
|
|
public List<SearchResultEntry> getEntries() { |
|
|
|
|
|
@ -49,7 +49,7 @@ public class LdapSync { |
|
|
|
new String[]{"cn", "givenname", "sn", "uid"} |
|
|
|
); |
|
|
|
|
|
|
|
System.out.print("Ok\nAbfrage der Benutzer im OpenLDAP..."); |
|
|
|
System.out.print(remote.getUsers().size() + "entrie(s) received\nAbfrage der Benutzer im OpenLDAP..."); |
|
|
|
|
|
|
|
// lade Daten des lokalen Systems |
|
|
|
final AccountSource local = new AccountSource( |
|
|
@ -62,7 +62,7 @@ public class LdapSync { |
|
|
|
new String[]{} |
|
|
|
); |
|
|
|
|
|
|
|
System.out.print("Ok\n"); |
|
|
|
System.out.print(remote.getUsers().size() + "entrie(s) received\n"); |
|
|
|
|
|
|
|
sync(remote, local); |
|
|
|
} |
|
|
|