try {
ci.run(true, false);
bindDn = ci.getBindDN();
bindPwd = ci.getBindPassword();
LDAPManagementContextFactory factory =
new LDAPManagementContextFactory(alwaysSSL);
ctx = factory.getManagementContext(this, ci);
interactiveTrustManager = ci.getTrustManager();
controlInfo.setTrustManager(interactiveTrustManager);
useInteractiveTrustManager = true;
} catch (ArgumentException e) {
println(e.getMessageObject());