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

Richard Megginson rmeggins at redhat.com
Fri Dec 2 18:50:24 UTC 2005


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,
>            ]
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3178 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-directory-users/attachments/20051202/98e7c254/attachment.bin>


More information about the Fedora-directory-users mailing list