| | |
| | | String bindDn2 = null; |
| | | String pwd2 = null; |
| | | ci.resetHeadingDisplayed(); |
| | | ci.resetTrustManager(); |
| | | |
| | | boolean doNotDisplayFirstError = false; |
| | | |
| | | if (!cancelled) |
| | | { |
| | | host2 = argParser.getHostName2(); |
| | |
| | | } |
| | | else if (bindDn2 == null) |
| | | { |
| | | doNotDisplayFirstError = true; |
| | | pwd = adminPwd; |
| | | if (argParser.getSecureArgsList().bindPasswordFileArg.isPresent()) |
| | | { |
| | |
| | | catch (ClientException ce) |
| | | { |
| | | LOG.log(Level.WARNING, "Client exception "+ce); |
| | | println(); |
| | | println(ce.getMessageObject()); |
| | | println(); |
| | | ci.resetConnectionArguments(); |
| | | if (!doNotDisplayFirstError) |
| | | { |
| | | println(); |
| | | println(ce.getMessageObject()); |
| | | println(); |
| | | ci.resetConnectionArguments(); |
| | | } |
| | | else |
| | | { |
| | | // Reset only the credential parameters. |
| | | ci.resetConnectionArguments(); |
| | | ci.initializeGlobalArguments(host2, port2, null, null, null, null); |
| | | } |
| | | } |
| | | catch (ArgumentException ae) |
| | | { |
| | |
| | | println(); |
| | | cancelled = true; |
| | | } |
| | | finally |
| | | { |
| | | doNotDisplayFirstError = false; |
| | | } |
| | | } |
| | | |
| | | if (!cancelled) |