Del
2005-Dec-01 08:43 UTC
[Fedora-directory-users] Creating Replication Agreements at the Command Line (again)
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 () (on both servers). I assumed that this was a password problem so I tried changing the password to cn=repman,cn=config on the server and in the replication agreement, and now I get the error message: [01/Dec/2005:18:41:14 +1100] NSMMReplicationPlugin - agmt="cn="Replication to fc3-dbw-1.babel.office"" (fc3-dbw-1:389): Replica has a different generation ID than the local data. I tried manually forcing the replica to happen via the console and I still get the above error message. Any ideas? I''ve tried rebuilding the DS from scratch a few times and I still get the same thing. -- Del
Del
2005-Dec-01 10:33 UTC
Re: [Fedora-directory-users] Creating Replication Agreements at the Command Line (again)
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
Richard Megginson
2005-Dec-02 18:50 UTC
Re: [Fedora-directory-users] Creating Replication Agreements at the Command Line (again)
Thanks Del - http://directory.fedora.redhat.com/wiki/Howto:MultiMasterReplication#Requirements Hopefully Mike can update his script soon, but the patch should work in the meantime. Del wrote:> 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, > ] >
Mike Jackson
2005-Dec-04 21:14 UTC
Re: [Fedora-directory-users] Creating Replication Agreements at the Command Line (again)
Del wrote:> 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:Hi, I fixed the script. Thanks for testing and reporting! -- mike