No known key found for this signature in database
GPG Key ID: B4C3BF012D9B26BE
2 changed files with
8 additions and
3 deletions
-
src/main/java/de/hsfulda/informatik/AccountSource.java
-
src/main/java/de/hsfulda/informatik/LdapSync.java
|
@ -75,12 +75,12 @@ public class AccountSource { |
|
|
try { |
|
|
try { |
|
|
ldapResult = connection.add(entry); |
|
|
ldapResult = connection.add(entry); |
|
|
if (ldapResult.getResultCode().intValue() == 0) { |
|
|
if (ldapResult.getResultCode().intValue() == 0) { |
|
|
System.out.println("-> Benutzer cn=" + entry.getDN() + " hinzugefügt...Ok\n"); |
|
|
|
|
|
|
|
|
System.out.print("-> Benutzer cn=" + entry.getDN() + " hinzugefügt...Ok\n"); |
|
|
} else { |
|
|
} else { |
|
|
System.out.println("Fehler beim Hinzufügen von Benutzer cn=" + entry.getDN() + " (" + ldapResult.getResultCode() + ")\n"); |
|
|
|
|
|
|
|
|
System.out.print("Fehler beim Hinzufügen von Benutzer cn=" + entry.getDN() + " (" + ldapResult.getResultCode() + ")\n"); |
|
|
} |
|
|
} |
|
|
} catch (LDAPException e) { |
|
|
} catch (LDAPException e) { |
|
|
System.out.println("Fehler beim Hinzufügen von Benutzer cn=" + entry.getDN() + " (" + e.getMessage() + ")\n"); |
|
|
|
|
|
|
|
|
System.out.print("Fehler beim Hinzufügen von Benutzer cn=" + entry.getDN() + " (" + e.getMessage() + ")\n"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
@ -108,4 +108,8 @@ public class AccountSource { |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void shutdown() { |
|
|
|
|
|
executorService.shutdown(); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
@ -141,6 +141,7 @@ public class LdapSync { |
|
|
|
|
|
|
|
|
local.del(usersToBeDeleted); |
|
|
local.del(usersToBeDeleted); |
|
|
local.add(entriesToBeAdded); |
|
|
local.add(entriesToBeAdded); |
|
|
|
|
|
local.shutdown(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
static Integer computeUid(final String cn) { |
|
|
static Integer computeUid(final String cn) { |
|
|