do {
connectionFailed = false;
String currentServer = (String) servers.next();
try {
TCPTool.probeConnectionLDAP(currentServer, Integer.parseInt(getPort()), getConnectionTimeOut()); // Avoid waiting for halfdead-servers
lc.connect(currentServer, Integer.parseInt(getPort()));
// authenticate to the server
lc.bind(ldapVersion, getLoginDN(), getLoginPassword().getBytes("UTF8"), ldapBindConstraints);
// Add or modify the entry
if (oldEntry != null && getModifyExistingUsers()) {
LDAPModification[] mods = new LDAPModification[modSet.size()];