|
@ -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 + "'"); |
|
|