mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
23.41.2008 8746d647ed25988892b093d62488b2c39d52e1c7
Fix for issue 3272 (Error at the end of QUickSetup.  SocketException: Reply from SOCKS server has bad version)

Use the host name provided by the user instead of 0.0.0.0 address when trying to connect to the server.
1 files modified
8 ■■■■ changed files
opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java 8 ●●●● patch | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/util/ServerController.java
@@ -403,7 +403,13 @@
          boolean connected = false;
          Configuration config = installation.getCurrentConfiguration();
          int port = config.getPort();
          String ldapUrl = "ldap://0.0.0.0:" + port;
          String hostName = application.getUserData().getHostName();
          if (hostName == null)
          {
            hostName = "localhost";
          }
          hostName = ConnectionUtils.getHostNameForLdapUrl(hostName);
          String ldapUrl = "ldap://"+hostName+":" + port;
          // See if the application has prompted for credentials.  If
          // not we'll just try to connect anonymously.