| | |
| | | import org.opends.quicksetup.util.ServerController; |
| | | import org.opends.quicksetup.util.Utils; |
| | | import org.opends.server.admin.client.cli.SecureConnectionCliArgs; |
| | | import org.opends.server.tools.dsconfig.LDAPManagementContextFactory; |
| | | import org.opends.server.util.StaticUtils; |
| | | import org.opends.server.util.cli.LDAPConnectionConsoleInteraction; |
| | | |
| | |
| | | ci.setDisplayLdapIfSecureParameters(true); |
| | | } |
| | | |
| | | InitialLdapContext ctx = null; |
| | | try |
| | | { |
| | | ci.run(true, false); |
| | | ci.run(alwaysSSL, false); |
| | | userData.setAdminUID(ci.getAdministratorUID()); |
| | | userData.setAdminPwd(ci.getBindPassword()); |
| | | |
| | |
| | | { |
| | | logger.error(LocalizableMessage.raw("Error parsing url: "+adminConnectorUrl)); |
| | | } |
| | | LDAPManagementContextFactory factory = |
| | | new LDAPManagementContextFactory(alwaysSSL); |
| | | factory.getManagementContext(this, ci); |
| | | updateTrustManager(userData, ci); |
| | | |
| | | info.setConnectionPolicy(ConnectionProtocolPolicy.USE_ADMIN); |
| | |
| | | printErrorMessage(e.getMessageObject()); |
| | | println(); |
| | | } |
| | | finally |
| | | { |
| | | StaticUtils.close(ctx); |
| | | } |
| | | |
| | | if (!couldConnect) |
| | | { |