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

jvergara
29.33.2009 f6617fb89ef9b57aee493b9d5d60c8184a263618
Fix associated with issue 3871.
Use the correct methods in ConnectionUtils to generate the LDAP urls to be used to connect to the server.
2 files modified
11 ■■■■ changed files
opends/src/guitools/org/opends/guitools/controlpanel/datamodel/ControlPanelInfo.java 7 ●●●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/controlpanel/ui/LocalOrRemotePanel.java 4 ●●●● patch | view | raw | blame | history
opends/src/guitools/org/opends/guitools/controlpanel/datamodel/ControlPanelInfo.java
@@ -1083,14 +1083,13 @@
      SortedSet<InetAddress> addresses = desc.getAddresses();
      if (addresses.size() == 0) {
        if (port > 0) {
          url = "ldaps://localhost:" + port;
          url = ConnectionUtils.getLDAPUrl("localhost", port, true);
        }
      } else {
        if (port > 0) {
          InetAddress address = addresses.first();
          url = "ldaps://" +
          ConnectionUtils.getHostNameForLdapUrl(address.getHostAddress()) + ":"
          + port;
          String a = address.getHostAddress();
          url = ConnectionUtils.getLDAPUrl(a, port, true);
        }
      }
    }
opends/src/guitools/org/opends/guitools/controlpanel/ui/LocalOrRemotePanel.java
@@ -423,8 +423,8 @@
            }
            else
            {
              usedUrl =
                "ldaps://"+hostName.getText().trim()+":"+port.getText().trim();
              usedUrl = ConnectionUtils.getLDAPUrl(hostName.getText().trim(),
                  new Integer(port.getText().trim()), true);
              ctx = Utils.createLdapsContext(usedUrl, dn.getText(),
                  String.valueOf(pwd.getPassword()),
                  Utils.getDefaultLDAPTimeout(), null,