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

jvergara
05.51.2007 d523a54241fc316c52e9f0275297dfceeba8753f
opendj-sdk/opends/src/ads/org/opends/admin/ads/util/ServerLoader.java
@@ -114,10 +114,14 @@
    if (!isOver)
    {
      isInterrupted = true;
      String ldapUrl = getLdapUrl(serverProperties);
      String ldapUrl = getLdapsUrl(serverProperties);
      if (ldapUrl == null)
      {
        ldapUrl = getLdapsUrl(serverProperties);
        ldapUrl = getStartTlsLdapUrl(serverProperties);
      }
      if (ldapUrl == null)
      {
        ldapUrl = getLdapUrl(serverProperties);
      }
      lastException = new TopologyCacheException(
          TopologyCacheException.Type.TIMEOUT, null, trustManager, ldapUrl);
@@ -310,7 +314,7 @@
    "true".equalsIgnoreCase(v.toString());
    if (ldapEnabled && startTLSEnabled)
    {
      ldapUrl = "ldaps://"+getHostNameForLdapUrl(serverProperties)+":"+
      ldapUrl = "ldap://"+getHostNameForLdapUrl(serverProperties)+":"+
      serverProperties.get(ServerProperty.LDAP_PORT);
    }
    return ldapUrl;