[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: slave to master not working...



The problem is:

When slurpd binds to Master, it uses "anonymous" binding. So,
the modification will be failed if the anonymous modification is not allowed
in your Master.
You need to implement "re-bind procedure" in your Client API to re-bind to
Master.
In my experience, Netscape Client SDK has provided such re-binding solution
and work well to OpenLDAP server.

SCW

----- Original Message -----
From: "Siok Peng" <siokpeng@transparity.com>
To: <openldap-software@OpenLDAP.org>
Sent: Monday, September 24, 2001 9:56 AM
Subject: slave to master not working...


> Hello all,
>    I need to set up two LDAP server (one master and one slave) which
> have sync. on their database. So far, I am only using one machine(Redhat
>
> linux 6.2) to test how to do it. I have successfully configured the
> replication from the master to the slave. When master updated its
> database, slurpd will update slave database. The problem is when slave
> updates its database, slurpd didn't make any changes to master. I don't
> know what's missing in my config files.
>     Belowing is my master.conf and slave.conf :
>
>     master.conf :
>
>
>
////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////
>
>     suffix  ""
>     rootdn  "cn=Manager,o=Transparity,c=SG"
>     rootpw  secret
>
>     ....
>     replica host=ldap://ldap.transparity.com:1389
>             binddn= "cn=Replica,o=Transparity,c=SG"
>             bindmethod=simple credentials=passwd
>
>     replogfile /usr/var/replog.log
>
>     index cn,mail pres,eq,sub
>
>     access to dn=".*,ou=Groups,o=Transparity,c=SG"
>          by * search
>     access to dn="cn=Manager,o=Transparity,c=SG"
>          by * none
>     access to dn="cn=Replica,o=Transparity,c=SG"
>          by * none
>     access to filter="objectclass=secureLdapUser"
>          by * read
>
>     access to attr=userpassword by self write
>          by dn="cn=Manager,o=Transparity,c=SG" write
>          by dn="cn=Replica,o=Transparity,c=SG" write
>          by * compare
>
>
>
////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////
>
>     slave.conf:
>
>
>
////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////
>
>     suffix  ""
>     rootdn  "cn=Replica,o=Transparity,c=SG"
>     rootpw  passwd
>
>     ....
>     updatedn "cn=Replica,o=Transparity,c=SG"
>     updateref  "ldap://ldap.transparity.com:389";
>
>     index cn,mail pres,eq,sub
>
>     access to dn=".*,ou=Groups,o=Transparity,c=SG"
>          by * search
>     access to dn="cn=Manager,o=Transparity,c=SG"
>          by * none
>     access to dn="cn=Replica,o=Transparity,c=SG"
>          by * none
>     access to filter="objectclass=secureLdapUser"
>          by * read
>
>     access to attr=userpassword by self write
>          by dn="cn=Manager,o=Transparity,c=SG" write
>          by dn="cn=Replica,o=Transparity,c=SG" write
>          by * compare
>
>
>
////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////
>
>     I really need help to solve this problem. Thanks you very much in
> advance..
>
> Regards,
> siok peng
>