[Fedora-directory-users] Creating Replication Agreements at the Command Line (again)

Del del at babel.com.au
Thu Dec 1 10:33:51 UTC 2005


Del wrote:
> 
> I am trying to set up a two-master replica using this script:
> 
> http://directory.fedora.redhat.com/wiki/Howto:MultiMasterReplication
> 
> It creates the necessary replication objects, and then continually
> reports the following error message in the log files:
> 
> [01/Dec/2005:18:55:04 +1100] NSMMReplicationPlugin - 
> agmt="cn="Replication to fc3-dbw-2.babel.office"" (fc3-dbw-2:389): 
> Replication bind to cn=repman,cn=config on consumer failed: 32 ()

The bug in the script can be fixed by applying this patch:

--

--- mmr.pl.old  2005-11-20 10:32:33.000000000 +1100
+++ mmr.pl      2005-12-01 21:20:19.000000000 +1100
@@ -52,8 +52,8 @@
  config_supplier($host2, $host2_id, $repmanpw);

  # add replication agreements
-add_rep_agreement($host1, $host2);
-add_rep_agreement($host2, $host1);
+add_rep_agreement($host1, $host2, $repmanpw);
+add_rep_agreement($host2, $host1, $repmanpw);

  # initialize host2 from host1
  initialize($host1, $host2);
@@ -133,7 +133,7 @@

  sub add_rep_agreement
  {
-    my ($from, $to) = @_;
+    my ($from, $to, $repmanpw) = @_;

      my $ldap = Net::LDAP->new($from) or die "$@";
      $ldap->bind($binddn, password => $bindpw, version => 3);
@@ -149,7 +149,7 @@
              nsDS5ReplicaPort             => 389,
                 nsDS5ReplicaBindDN           => "cn=repman,cn=config",
              nsDS5ReplicaBindMethod       => "simple",
-               nsDS5ReplicaCredentials      => "repman",
+               nsDS5ReplicaCredentials      => $repmanpw,
                 nsDS5ReplicaUpdateSchedule   => "0000-2359 0123456",
                 nsDS5ReplicaTimeOut          => 120,
            ]

-- 
Del




More information about the Fedora-directory-users mailing list