Creating Replication Agreements at the Command Line (again)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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://lists.fedoraproject.org/pipermail/389-users/attachments/20051202/98e7c254/attachment.bin 


[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux