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

Re: Fail to write in slave during replication





>>     The following is the running result:
>>     ****************************************************************
>>     modifying entry "uid=testuser,dc=mycompany,dc=com"
>>     ldapmodify: Referral (10)
>>             referrals:
>>                     ldap://master:389/uid=testuser,dc=mycompany,dc=com
>>      ****************************************************************


The slave doesn't take writes, it refers the client to the Master. "I don't accept writes, speak to ldap://master:389/uid=testuser,dc=mycompany,dc=com" etc.

You can use slapo-chain to send writes back to the master from the slave, or use MirrorMode or N-Way Multimaster.

What are you trying to achieve with your current network layout?

I just want to have several openldap servers, and each modification to a server can replicate to all other servers.

As openldap 2.4 does not have stable version, I choose to use 2.3. Because 2.3 does not support 2.4, I do not use the N-masters configuration. So I want to use the referral to achieve the aim. When it modifies a slave, it refers to master, and the replicates to others.

Thanks you hint about slapo-chain. I will study it and try to use it.




--
Kind Regards,

Gavin Henry.
OpenLDAP Engineering Team.

E ghenry@OpenLDAP.org

Community developed LDAP software.

http://www.openldap.org/project/



--
John 3:16 For God so loved the world, that He gave His only begotten Son, that whoever believes in Him shall not perish, but have eternal life.
http://www.hkccc.org/flash2.htm