title: OpenDJ Multi-master replication fails(Hangs at Initializing registration information step):: javax.naming.AuthenticationException
body: <p>I am using OpenDJ-2.4.6 along with Oracle JDK 7.80 and I want to run Multi-master replication on 2 of my servers, the OS for these servers is Amazon Linux.</p>
  
  <p>The OpenDJ setup runs perfectly fine; I can start the server too without any errors.</p>
  
  <p>It is when I run the "<strong>dsreplication</strong>" script as follows:</p>
  
  <p><strong><code>./dsreplication enable --host1 server1.example,com --port1 4444 --bindDN1 "cn=Directory Manager" --bindPassword1 "Passw0rd" --replicationPort1 1388 --host2 server2.example,com --port2 4444 --bindDN2 "cn=Directory Manager" --bindPassword2 "Passw0rd" --replicationPort2 1388 --adminUID admin --adminPassword "Passw0rd" --baseDN "dc=example,dc=com"</code></strong></p>
  
  <p>the script hangs on the following step:</p>
  
  <pre><code>Initializing registration information on server server2.example.com:4444 with the contents of server server1.example.com:4444 .....
  </code></pre>
  
  <p>And on checking the logs, there is no error reported in there.</p>
  
  <p>But, when I run the following command:</p>
  
  <pre><code>./dsreplication status -h localhost -p 4444 --adminUID admin --adminPassword "Passw0rd" -X
  </code></pre>
  
  <p>it throws the following error: </p>
  
  <blockquote>
    <p>The displayed information might not be complete because the following
    errors were encountered reading the configuration of the existing
    servers: Error on server2.example.com:4444: An error occurred
    connecting to the server.  Details:
    javax.naming.AuthenticationException: [LDAP: error code 49 - Invalid
    Credentials] Error on server:4444: An error occurred connecting to the
    server. Details: javax.naming.AuthenticationException: [LDAP: error
    code 49 - Invalid Credentials]</p>
  </blockquote>
  
  <p>Please help me.</p>
  
  <p>Thanks in advance.</p>