This can be caused by replication dn having an expired password.<br><br><div class="gmail_quote">On Tue, Apr 3, 2012 at 4:55 PM, Herb Burnswell <span dir="ltr">&lt;<a href="mailto:herbert.burnswell@gmail.com">herbert.burnswell@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><div class="gmail_quote"><div class="gmail_quote"><div><div class="h5"><div>---------- Forwarded message ----------<br>
From: <b class="gmail_sendername">Rich Megginson</b> <span dir="ltr">&lt;<a href="mailto:rmeggins@redhat.com" target="_blank">rmeggins@redhat.com</a>&gt;</span><br>
</div><div><div>
Date: Mon, Apr 2, 2012 at 7:37 PM<br>Subject: Re: [389-users] Fwd:  Repair replication<br>To: &quot;General discussion list for the 389 Directory server project.&quot; &lt;<a href="mailto:389-users@lists.fedoraproject.org" target="_blank">389-users@lists.fedoraproject.org</a>&gt;<br>


Cc: Herb Burnswell &lt;<a href="mailto:herbert.burnswell@gmail.com" target="_blank">herbert.burnswell@gmail.com</a>&gt;<br><br><br>
  
    
  
  </div></div></div></div><div bgcolor="#FFFFFF" text="#000000"><div><div class="h5"><div><div><div><div>
    On 04/02/2012 05:48 PM, Herb Burnswell wrote:
    <blockquote type="cite"><br>
      <br>
      <div class="gmail_quote">---------- Forwarded message ----------<br>
        From: <b class="gmail_sendername">Rich Megginson</b> <span dir="ltr">&lt;<a href="mailto:rmeggins@redhat.com" target="_blank">rmeggins@redhat.com</a>&gt;</span><br>
        Date: Mon, Apr 2, 2012 at 3:23 PM<br>
        Subject: Re: [389-users] Repair replication<br>
        To: &quot;General discussion list for the 389 Directory server
        project.&quot; &lt;<a href="mailto:389-users@lists.fedoraproject.org" target="_blank">389-users@lists.fedoraproject.org</a>&gt;<br>
        Cc: Herb Burnswell &lt;<a href="mailto:herbert.burnswell@gmail.com" target="_blank">herbert.burnswell@gmail.com</a>&gt;<br>
        <br>
        <br>
        <div bgcolor="#FFFFFF" text="#000000">
          <div> On 04/02/2012 04:13 PM, Herb Burnswell wrote:
            <blockquote type="cite"><br>
              <br>
              <div class="gmail_quote">On Fri, Mar 23, 2012 at 10:53 AM,
                Rich Megginson <span dir="ltr">&lt;<a href="mailto:rmeggins@redhat.com" target="_blank">rmeggins@redhat.com</a>&gt;</span>
                wrote:<br>
                <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div bgcolor="#FFFFFF" text="#000000">
                    <div> On 03/23/2012 11:09 AM, Herb Burnswell wrote:
                      <blockquote type="cite">Thanks for the reply
                        David.<br>
                        <br>
                        &gt;&gt; 1. How can I find out which system(s)
                        is/are master, consumer, hub, etc?<br>
                        &gt;&gt;&gt;&gt;You should be able to determine
                        the role of the Directory Server for each<br>
                        &gt;&gt;&gt;&gt;system by logging into the LDAP
                        console under<br>
                        &gt;&gt;&gt;&gt;&quot;Configuration-&gt;Replication&quot;.
                         The role is either &quot;Single Master&quot;, &quot;Hub&quot; or<br>
                        &gt;&gt;&gt;&gt;&quot;Dedicated Consumer&quot;.<br>
                        <br>
                        &gt;I was able to determine that we have two
                        &quot;Multiple Master&quot; systems.  Let&#39;s call &gt;them
                        &#39;A&#39; and &#39;B&#39;.  System A has been the only system
                        running for what appears to &gt;be several years
                        (it is being backed up nightly).  System B has
                        been off for some &gt;time but is running now.<br>
                        <br>
                        &gt;&gt; 2. How do I confirm that the systems
                        have the correct credentials for<br>
                        &gt;replication? (I am receiving: &quot;Unable to
                        acquire replica: Permission<br>
                        &gt;denied.&quot;)<br>
                           &gt;a. How can I change the bind dn
                        &quot;cn=replication,cn=config&quot; credentials<br>
                        &gt;on each system to ensure replication will
                        work?<br>
                        &gt;&gt;&gt;&gt;You can do that on the console
                        as well.  Just navigate down the directory<br>
                        &gt;&gt;&gt;&gt;tree and manually reset the
                        password for the replication user account.<br>
                        &gt;&gt;&gt;&gt;There&#39;s a possibility that your
                        replication user account&#39;s password expired.<br>
                        <br>
                        &gt;I can navigate to the screen to reset the
                        password for the replication user account.  I
                        &gt;have not reset the passwords yet as I am
                        reading documentation to confirm that &gt;system
                        B will simply update it&#39;s data to system A&#39;s
                        upon resuming replication.<br>
                      </blockquote>
                    </div>
                    &gt;When you change the password of the replication
                    user on B, you&#39;ll also have to update &gt;those
                    credentials in the replication agreement on A for
                    the agreement from A to B.<br>
                    <br>
                    &gt;Note that if replication has been down for
                    years, you will have to perform a manual &gt;replica
                    initialization procedure - replication will not
                    automatically &quot;catch up&quot; if it has &gt;been down
                    that long.
                    <div>
                      <div><br>
                      </div>
                    </div>
                  </div>
                </blockquote>
                <div>Rich - Thank you for the response. I was diverted
                  to another urgent issue but have come back to this
                  replication fix. <br>
                  <br>
                  I&#39;ve confirmed that there are two Dedicated Consumer&#39;s
                  (C and D) to go along with the two Dual Master&#39;s (A
                  and B). I want to replicate to one of the dedicated
                  consumers, C, prior to syncing the dual master B. I
                  changed the passwords for dn:cn=replication,cn=config
                  on A via the Directory Manager console, and via
                  ldapmodify on C. I am confident that the passwords are
                  the same on both systems. <br>
                </div>
              </div>
            </blockquote>
            <br>
          </div>
          &gt;What exactly did you do?<br>
          &gt;Note that you&#39;ll have to update the password in
          cn=replication,cn=config on the &gt;consumer (C) and update
          the replication agreement on A for the replication agreement
          &gt;between A and C.
          <div>
            <div><br>
              Thanks for the reply Rich.  Yes, I updated the password on
              A and C.  I apologize as I left out the link in my below
              reference to section <a href="http://8.10.5.1" target="_blank">8.10.5.1</a>: <a href="http://www.centos.org/docs/5/html/CDS/ag/8.0/Managing_Replication-Initializing_Consumers.html" target="_blank">http://www.centos.org/docs/5/html/CDS/ag/8.0/Managing_Replication-Initializing_Consumers.html</a>. 
              I used bak2db with backup files from A.  After which, I
              see: &quot;Unable to acquire replica: permission denied. The
              bind dn &quot;cn=replication,cn=config&quot; does not have
              permission to supply replication updates to the replica.
              Will retry later.&quot; on system A&#39;s error logs.. </div>
          </div>
        </div>
      </div>
    </blockquote></div></div>
    &gt;I think doing the restore is resetting the password.  After doing
    the bak2db, change the &gt;passwords.<br><br></div></div>Well, I&#39;m kind of at a loss here.  I&#39;ve reset the passwords on A and C after doing the bak2db.  Same error:<div><br><br>Unable to acquire replica: permission denied. The bind dn &quot;cn=replication,cn=config&quot; does not have permission to supply replication updates to the replica. Will retry later.<br>


<br></div>Next, I removed and re-added the replication agreement on Master A to Consumer C, same error above.<br><br>Is there any way that I can output the settings/password information for cn=replication,cn=config on both A and C via the command line to compare?  I have read that there needs to be a &#39;person&#39; entry on the consumer for cn=replication,cn=config that is used for the replication of the data.  Is there a way I can confirm this configuration to ensure it is set up correctly?<br>

<br></div></div>I&#39;m also seeing this error in the logs on consumer C:<br><br> NSMMReplicationPlugin - conn=2 op=9 replica=&quot;o=myTree&quot;: Unable to acquire replica: error: permission denied<div><div class="h5">
<br><div><div><br>
<div><div><br>
    <blockquote type="cite">
      <div class="gmail_quote">
        <div bgcolor="#FFFFFF" text="#000000">
          <div>
            <div>
              <blockquote type="cite">
                <div class="gmail_quote">
                  <div> <br>
                    &gt;I followed section 8.10.5.1 on initializing the
                    consumer replica from backup files and it &gt;worked
                    with the following: <br>
                    <br>
                    &gt;[02/Apr/2012:11:58:03 -0700] - Add Attribute
                    readonly Value off <br>
                    &gt;[02/Apr/2012:11:58:03 -0700] - Add Attribute
                    nsslapd-directory Value /new/path/from/master/server<br>
                    &gt;[02/Apr/2012:11:58:04 -0700] - Del Attribute
                    nsslapd-directory Value /old/path/from/consumer<br>
                    &gt;[02/Apr/2012:11:58:04 -0700] - WARNING!!:
                    current Instance Config is different from backed up
                    configuration; The backup is restored.<br>
                    <br>
                    &gt;First, do I need to reset these attributes back
                    to &#39;readonly&#39; and the original nsslapd-directory? <br>
                    <br>
                    &gt;Second, I am now receiving the following error
                    from the master A: <br>
                    &gt;Unable to acquire replica: permission denied.
                    The bind dn &quot;cn=replication,cn=config&quot; &gt;does not
                    have permission to supply replication updates to the
                    replica. Will retry later. <br>
                    <br>
                    &gt;On another note, I see plain text passwords in
                    the error logs on A for the consumers &gt;but passwd
                    = {SSHA}0bgDq2f1IM/2nNOOIHUh8lXfkG13XUOHTYD== for B,
                    the other &gt;master. Is there specific reason for
                    this? <br>
                    <br>
                    &gt;As always, any guidance that can be provided is
                    greatly appreciated. <br>
                    <br>
                    TIA, <br>
                    <br>
                    Herb <br>
                  </div>
                  <blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                    <div bgcolor="#FFFFFF" text="#000000">
                      <div>
                        <div>
                          <blockquote type="cite"> <br>
                            &gt;&gt; 3. I assume that upon repairing
                            replication (apparently it has not been<br>
                            working for several years) the systems will
                            all replicate to the most<br>
                            recent information.  Correct?<br>
                            &gt;&gt;&gt;&gt;I think that&#39;s the tricky
                            part.  Make sure you backup your directory
                            on all<br>
                            &gt;&gt;&gt;&gt;the LDAP first so you have
                            something to roll back.  I *believe* the
                            last<br>
                            &gt;&gt;&gt;&gt;step when setting up
                            replication is initializing the directory
                            and that<br>
                            &gt;&gt;&gt;&gt;will wipe out directory on
                            the other LDAP.  Someone on the list might
                             be<br>
                            &gt;&gt;&gt;&gt;able to provide a better on
                            this but I am just giving you a heads up
                            that<br>
                            &gt;&gt;&gt;&gt;this can be a complicated
                            process.<br>
                            <br>
                            Given the fact that system B has not been
                            running for some time, ideally it would
                            simply replicate to the current data on
                            system A.  After replication is
                            reestablished the systems are set up to
                            &quot;Always keep directories in sync&quot;.  If
                            anyone can confirm the behavior that will
                            occur upon replication on these two systems
                            it would be greatly appreciated.<br>
                            <br>
                            Thanks in advance,<br>
                            <br>
                            Herb<br>
                            <br>
                            <br>
                            <div class="gmail_quote">
                              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                                ------------------------------<br>
                                <br>
                                Message: 2<br>
                                Date: Thu, 22 Mar 2012 10:40:34 -0400<br>
                                From: Chun Tat David Chu &lt;<a href="mailto:beyonddc.storage@gmail.com" target="_blank">beyonddc.storage@gmail.com</a>&gt;<br>
                                To: &quot;General discussion list for the 389
                                Directory server project.&quot;<br>
                                       &lt;<a href="mailto:389-users@lists.fedoraproject.org" target="_blank">389-users@lists.fedoraproject.org</a>&gt;<br>
                                Subject: Re: [389-users] Repair
                                replication<br>
                                Message-ID:<br>
                                       &lt;<a href="mailto:CANCf8oLYKet99sB_ou4U3CER8U89UgwZhGUBTHekcF9HWNKL9g@mail.gmail.com" target="_blank">CANCf8oLYKet99sB_ou4U3CER8U89UgwZhGUBTHekcF9HWNKL9g@mail.gmail.com</a>&gt;<br>



                                Content-Type: text/plain;
                                charset=&quot;iso-8859-1&quot;<br>
                                <br>
                                Hey Herb,<br>
                                <br>
                                You should refer to the Red Hat
                                Directory Server administration guide
                                for<br>
                                detail about setting up replication
                                which you can locate in here.<br>
                                <a href="http://docs.redhat.com/docs/en-US/Red_Hat_Directory_Server/" target="_blank">http://docs.redhat.com/docs/en-US/Red_Hat_Directory_Server/</a><br>
                                <br>
                                &gt;&gt; 1. How can I find out which
                                system(s) is/are master, consumer, hub,
                                etc?<br>
                                You should be able to determine the role
                                of the Directory Server for each<br>
                                system by logging into the LDAP console
                                under<br>
                                &quot;Configuration-&gt;Replication&quot;.  The
                                role is either &quot;Single Master&quot;, &quot;Hub&quot; or<br>
                                &quot;Dedicated Consumer&quot;.<br>
                                <br>
                                &gt;&gt; 2. How do I confirm that the
                                systems have the correct credentials for<br>
                                replication? (I am receiving: &quot;Unable to
                                acquire replica: Permission<br>
                                denied.&quot;)<br>
                                   a. How can I change the bind dn
                                &quot;cn=replication,cn=config&quot; credentials<br>
                                on each system to ensure replication
                                will work?<br>
                                You can do that on the console as well.
                                 Just navigate down the directory<br>
                                tree and manually reset the password for
                                the replication user account.<br>
                                There&#39;s a possibility that your
                                replication user account&#39;s password
                                expired.<br>
                                <br>
                                &gt;&gt; 3. I assume that upon repairing
                                replication (apparently it has not been<br>
                                working for several years) the systems
                                will all replicate to the most<br>
                                recent information.  Correct?<br>
                                I think that&#39;s the tricky part.  Make
                                sure you backup your directory on all<br>
                                the LDAP first so you have something to
                                roll back.  I *believe* the last<br>
                                step when setting up replication is
                                initializing the directory and that<br>
                                will wipe out directory on the other
                                LDAP.  Someone on the list might  be<br>
                                able to provide a better on this but I
                                am just giving you a heads up that<br>
                                this can be a complicated process.<br>
                                <br>
                                Good luck<br>
                                <br>
                                - David<br>
                                <br>
                                2012/3/21 Herb Burnswell &lt;<a href="mailto:herbert.burnswell@gmail.com" target="_blank">herbert.burnswell@gmail.com</a>&gt;<br>
                                <br>
                                &gt; Hi All,<br>
                                &gt;<br>
                                &gt; I&#39;m new to LDAP administration and
                                have been tasked with fixing the system<br>
                                &gt; replication of 4 Linux systems
                                running Fedora Directory Services.  I am<br>
                                &gt; very comfortable working with
                                Linux/Unix but am not experienced with
                                LDAP.<br>
                                &gt; I&#39;ve been reading the
                                communications from this user group and
                                reading as<br>
                                &gt; much as I can from documentation.
                                 I believe this environment is not too<br>
                                &gt; complex but I am looking for some
                                guidance, any assistance is greatly<br>
                                &gt; appreciated.<br>
                                &gt;<br>
                                &gt; Info:<br>
                                &gt;<br>
                                &gt; OS: Fedora Core 4<br>
                                &gt; LDAP: Fedora Directory Server v 7.1<br>
                                &gt;<br>
                                &gt; First, I know that both the systems
                                and FDS versions are ancient.<br>
                                &gt; However, at this point I need to
                                get the replication working prior to<br>
                                &gt; putting together a migration plan.
                                 I have access to the Directory Manager<br>
                                &gt; console and am comfortable running
                                command line commands as well.  Either<br>
                                &gt; way is fine.<br>
                                &gt;<br>
                                &gt; Questions:<br>
                                &gt;<br>
                                &gt; 1. How can I find out which
                                system(s) is/are master, consumer, hub,
                                etc?<br>
                                &gt;<br>
                                &gt; 2. How do I confirm that the
                                systems have the correct credentials for<br>
                                &gt; replication? (I am receiving:
                                &quot;Unable to acquire replica: Permission<br>
                                &gt; denied.&quot;)<br>
                                &gt;     a. How can I change the bind dn
                                &quot;cn=replication,cn=config&quot; credentials<br>
                                &gt; on each system to ensure
                                replication will work?<br>
                                &gt;<br>
                                &gt; 3. I assume that upon repairing
                                replication (apparently it has not been<br>
                                &gt; working for several years) the
                                systems will all replicate to the most<br>
                                &gt; recent information.  Correct?<br>
                                &gt;<br>
                                &gt; Again, any guidance is greatly
                                appreciated.<br>
                                &gt;<br>
                                &gt; Thanks in advance,<br>
                                &gt;<br>
                                &gt; Herb<br>
                                &gt;<br>
                                &gt; --<br>
                                &gt; 389 users mailing list<br>
                                &gt; <a href="mailto:389-users@lists.fedoraproject.org" target="_blank">389-users@lists.fedoraproject.org</a><br>
                                &gt; <a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a><br>
                                &gt;<br>
                                -------------- next part --------------<br>
                                An HTML attachment was scrubbed...<br>
                                URL: &lt;<a href="http://lists.fedoraproject.org/pipermail/389-users/attachments/20120322/edfe5e8f/attachment-0001.html" target="_blank">http://lists.fedoraproject.org/pipermail/389-users/attachments/20120322/edfe5e8f/attachment-0001.html</a>&gt;<br>



                                <br>
                              </blockquote>
                            </div>
                            <br>
                            <fieldset></fieldset>
                            <br>
                            <pre>--
389 users mailing list
<a href="mailto:389-users@lists.fedoraproject.org" target="_blank">389-users@lists.fedoraproject.org</a>
<a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a></pre>
                          </blockquote>
                          <br>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                </div>
                <br>
                <br>
                <fieldset></fieldset>
                <br>
                <pre>--
389 users mailing list
<a href="mailto:389-users@lists.fedoraproject.org" target="_blank">389-users@lists.fedoraproject.org</a>
<a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a></pre>
              </blockquote>
              <br>
            </div>
          </div>
        </div>
      </div>
      <br>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>--
389 users mailing list
<a href="mailto:389-users@lists.fedoraproject.org" target="_blank">389-users@lists.fedoraproject.org</a>
<a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a></pre>
    </blockquote>
    <br>
  </div></div></div></div></div></div></div>

</div><br>
</div><br>
<br>--<br>
389 users mailing list<br>
<a href="mailto:389-users@lists.fedoraproject.org">389-users@lists.fedoraproject.org</a><br>
<a href="https://admin.fedoraproject.org/mailman/listinfo/389-users" target="_blank">https://admin.fedoraproject.org/mailman/listinfo/389-users</a><br></blockquote></div><br>