Browse Source

Fixed output

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

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

@ -31,10 +31,11 @@ public class LdapSync {
public LdapSync() throws IOException, LDAPException, GeneralSecurityException { public LdapSync() throws IOException, LDAPException, GeneralSecurityException {
// lade Konfiguration // lade Konfiguration
properties.load(new FileReader("ldap-sync.properties")); properties.load(new FileReader("ldap-sync.properties"));
System.out.print("Abfrage der Benutzer im eDirectory...");
this.userDefinedMappings = parseUserDefinedMappings(properties.getProperty("sync.src.map", "")); this.userDefinedMappings = parseUserDefinedMappings(properties.getProperty("sync.src.map", ""));
System.out.print("Abfrage der Benutzer im eDirectory...");
// lade Daten des Remote-Systems // lade Daten des Remote-Systems
final AccountSource remote = new AccountSource( final AccountSource remote = new AccountSource(
properties.getProperty("sync.src.host"), properties.getProperty("sync.src.host"),
@ -85,7 +86,7 @@ public class LdapSync {
continue; continue;
} }
System.out.println("Benutzerdefinierte Zuordnung '" + uid + "' -> " + uidNumber);
System.out.println("-> Benutzerdefinierte Zuordnung '" + uid + "' -> " + uidNumber);
mappingsMap.put(uid, uidNumber); mappingsMap.put(uid, uidNumber);
} else { } else {
System.out.println("Fehler beim Parsen der Zuordnung '" + mapping + "'"); System.out.println("Fehler beim Parsen der Zuordnung '" + mapping + "'");

Loading…
Cancel
Save