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

Replica:can't insert entry from slave server



I got problems:
This is a LAN, ldap master server "master", ldap replica slave server "slave".
The slapd.conf on master(192.168.12.132) is:
database ldbm
suffix "dc=mt,dc=com"
rootdn "cn=beijing,dc=mt,dc=com"
rootpw secret
access to * by dn.base="cn=Slave,dc=mt,dc=com" write
by dn.base="cn=beijing,dc=mt,dc=com" write
by dn.base="cn=shanghai,dc=mt,dc=com" write
by * read
directory /etc/openldap/ldap
replica host=192.168.12.134:389
bindmethod=simple credentials=secret
binddn="cn=Slave,dc=mt,dc=com"


The slapd.conf on slave(192.168.12.132) is:
database        ldbm
suffix          "dc=mt,dc=com"
rootdn          "cn=shanghai,dc=mt,dc=com"
rootpw          secret
access to * by dn.base="cn=Slave,dc=mt,dc=com" write
        by  dn.base="cn=beijing,dc=mt,dc=com" write
        by  dn.base="cn=shanghai,dc=mt,dc=com" write
        by * read
updatedn        "cn=Slave,dc=mt,dc=com"
updateref       192.168.12.132:389

I have added the users with objectClass "top" and "person": shanghai,beijing, slave

Now, the replica from master to slave is good, but the replica from slave to master is not running:
ldapadd -D "cn=shanghai,dc=mt,dc=com" -x -w secret -f person.ldif
adding new entry "cn=sh02,dc=mt,dc=com"
ldapadd: update failed: cn=sh02,dc=mt,dc=com
ldap_add: Referral (10)
referrals:
192.168.12.132:389


I got the same error when binding "cn=beijing,dc=mt, dc=com".
While, I can succeed when binding "cn=slave, dc=mt,dc=com", but the entry is only inserted into the slave server, not able to be inserted into the master.


What is wrong?
Anyone can help me?

_________________________________________________________________
免费下载 MSN Explorer: http://explorer.msn.com/lccn/