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

Jean-Noël Rouvignac
01.26.2016 a12eb578b2b06f6ba9d929f4a2c7b81e13eae7cc
opendj-server-legacy/src/main/java/org/opends/server/tools/dsreplication/ReplicationCliMain.java
@@ -3418,7 +3418,7 @@
    boolean triedWithUserProvidedAdmin = false;
    final ConnectionWrapper conn1 = conn.get();
    HostPort hostPort = conn1.getHostPort();
    Type connectionType = getConnectionType(conn1);
    Type connectionType = conn1.getConnectionType();
    if (getTrustManager(ci) == null)
    {
      // This is required when the user did  connect to the server using SSL or
@@ -3591,22 +3591,6 @@
    return !cancelled;
  }
  private Type getConnectionType(final ConnectionWrapper conn)
  {
    if (conn.isSSL())
    {
      return LDAPS;
    }
    else if (conn.isStartTLS())
    {
      return START_TLS;
    }
    else
    {
      return LDAP;
    }
  }
  /**
   * Tells whether there is a Global Administrator defined in the server for which the connection is
   * provided.