From 938458fc336b4fd05cc7e71dbfb2797e7ed8447e Mon Sep 17 00:00:00 2001 From: Christian Pape Date: Tue, 19 Nov 2024 11:12:19 +0100 Subject: [PATCH] Add debug output --- src/main/java/de/hsfulda/informatik/AccountSource.java | 2 -- src/main/java/de/hsfulda/informatik/LdapSync.java | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/main/java/de/hsfulda/informatik/AccountSource.java b/src/main/java/de/hsfulda/informatik/AccountSource.java index adbde52..55bbda8 100644 --- a/src/main/java/de/hsfulda/informatik/AccountSource.java +++ b/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 getEntries() { diff --git a/src/main/java/de/hsfulda/informatik/LdapSync.java b/src/main/java/de/hsfulda/informatik/LdapSync.java index a63c0b2..0dc0013 100644 --- a/src/main/java/de/hsfulda/informatik/LdapSync.java +++ b/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); }