Browse Source

Add debug output

main
Christian Pape 5 days ago
committed by Dustin Frisch
parent
commit
938458fc33
No known key found for this signature in database GPG Key ID: B4C3BF012D9B26BE
  1. 2
      src/main/java/de/hsfulda/informatik/AccountSource.java
  2. 4
      src/main/java/de/hsfulda/informatik/LdapSync.java

2
src/main/java/de/hsfulda/informatik/AccountSource.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() {

4
src/main/java/de/hsfulda/informatik/LdapSync.java

@ -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);
}

Loading…
Cancel
Save