opendj-sdk/opendj-cli/src/main/java/com/forgerock/opendj/cli/Utils.java
@@ -588,4 +588,31 @@ } return isOutOfMemory; } /** * Returns the string that can be used to represent a given host name in a LDAP URL. * This method must be used when we have IPv6 addresses (the address in the LDAP URL * must be enclosed with brackets). * E.g:<pre> * -h "[2a01:e35:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx]" * </pre> * * @param host * The host name. * @return The String that can be used to represent a given host name in a LDAP URL. */ public static String getHostNameForLdapUrl(String host) { if (host != null && host.indexOf(":") != -1) { // Assume an IPv6 address has been specified and adds the brackets // for the URL. host = host.trim(); if (!host.startsWith("[")) { host = "[" + host; } if (!host.endsWith("]")) { host = host + "]"; } } return host; } } opendj-sdk/opendj-cli/src/main/resources/com/forgerock/opendj/cli/cli.properties
@@ -950,4 +950,13 @@ because you are connected to a server pretending to be %s:%s.\n\ Before accepting this certificate, you should examine the server's \ certificate carefully. ERR_ERROR_CANNOT_READ_CONNECTION_PARAMETERS=The connection \ parameters could not be read due to the following error: %s ERR_ERROR_NO_ADMIN_PASSWORD=No password was specified for \ administrator "%s" ERR_ERROR_BIND_PASSWORD_NONINTERACTIVE=The LDAP bind \ password was not specified and cannot be read interactively ERR_ERROR_INCOMPATIBLE_PROPERTY_MOD=The property \ modification "%s" is incompatible with another modification to the same \ property