| | |
| | | * |
| | | * Copyright 2007-2010 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011-2016 ForgeRock AS. |
| | | * Portions Copyright 2026 3A Systems, LLC. |
| | | */ |
| | | package org.opends.server.tools.status; |
| | | |
| | |
| | | // LDAPConnectionConsoleInteraction, this done, it will not prompt |
| | | // the user for them. |
| | | controlInfo.setConnectionPolicy(ConnectionProtocolPolicy.USE_ADMIN); |
| | | int port = controlInfo.getAdminConnectorHostPort().getPort(); |
| | | final SecureConnectionCliArgs secureArgsList = argParser.getSecureArgsList(); |
| | | final StringArgument hostNameArg = secureArgsList.getHostNameArg(); |
| | | if (!hostNameArg.isPresent()) |
| | | { |
| | | hostNameArg.setPresent(true); |
| | | hostNameArg.addValue(hostNameArg.getDefaultValue()); |
| | | } |
| | | final IntegerArgument portArg = secureArgsList.getPortArg(); |
| | | if (!portArg.isPresent()) |
| | | { |
| | | int port = controlInfo.getAdminConnectorHostPort().getPort(); |
| | | portArg.setPresent(true); |
| | | portArg.addValue(Integer.toString(port)); |
| | | } |
| | | // We already know if SSL or StartTLS can be used. If we cannot |
| | | // use them we will not propose them in the connection parameters |
| | | // and if none of them can be used we will just not ask for the |