I have added serverid 1 to first server and serverid 2 to secondserver and rid=001 with syncrepl on both the server also added mirrormode true on both node but now when i make changes to one server that is not reflected to another one while before adding mirrormode true whenever i was trying to make changes in dir it gives me error [  Sep  4 10:18:39 mail slapd[20141]: conn=5 op=1 RESULT tag=103 err=53 text=shadow context; no update referral ]  So now no idea where I am wrong. Please help me ...


On Wed, Sep 3, 2008 at 6:25 PM, Miguel Jinez <miguel.jinez@gmail.com> wrote:
Hello, maybe try with a mirrormode line, look the comments in red

Migue

2008/9/3 piyush joshi <joy.piyush@gmail.com>

 
Dear All,
               I am using openldap-2.4.11 version and trying to use N-way multimaster replication so that changes made to first server reflects to second and vice versa but with my current set up if i use syncprov overlay and syncrepl on both server then it doesn't allow me to make changes in any ldap server but if i configure syncprov overlay on one server and configure syncrepl on another server it allow me to make changes and as well reflect the changes to another however still i can't make changes to second ldap server my both server configuration is as follows. please let me know what is wrong with this configuration or what all changes to be made to running it.
 
Configuration on First  LDAP Server
 
allow bind_v2
include         /usr/local/openldap/etc/openldap/schema/core.schema
include        /usr/local/openldap/etc/openldap/schema/corba.schema
include        /usr/local/openldap/etc/openldap/schema/cosine.schema
include        /usr/local/openldap/etc/openldap/schema/nis.schema
include        /usr/local/openldap/etc/openldap/schema/inetorgperson.schema
pidfile         /usr/local/openldap/var/run/slapd.pid
argsfile        /usr/local/openldap/var/run/slapd.args
modulepath      /usr/local/openldap/libexec/openldap
moduleload syncprov
password-hash {SSHA}
database        hdb
suffix          "dc=***,dc=com"
rootdn          "cn=root,dc=***,dc=com"
rootpw          {SSHA}yZkqhHmELfmUTsaQyfxgXBqq95gugTA4
directory       /usr/local/openldap/var/openldap-data
index uid pres,eq
index cn,sn pres,eq,approx,sub
index   objectClass     eq
index entryCSN,entryUUID eq
syncrepl rid=001
provider=ldap://192.168.1.12
type=refreshAndPersist
retry="5 5 300 +"
searchbase="dc=***,dc=com"
attrs=*
binddn="cn=root,dc=***,dc=com"
credentials=secret
mirrormode true
 
overlay syncprov
syncprov-checkpoint 50 10
database        monitor
loglevel 256
 

                                   Configuration on Second LDAP Server

allow bind_v2
include        /usr/local/openldap/etc/openldap/schema/core.schema
include        /usr/local/openldap/etc/openldap/schema/corba.schema
include        /usr/local/openldap/etc/openldap/schema/cosine.schema
include        /usr/local/openldap/etc/openldap/schema/nis.schema
include        /usr/local/openldap/etc/openldap/schema/inetorgperson.schema
pidfile         /usr/local/openldap/var/run/slapd.pid
argsfile        /usr/local/openldap/var/run/slapd.args

modulepath      /usr/local/openldap/libexec/openldap
moduleload syncprov
password-hash {SSHA}

database        hdb
suffix          "dc=***,dc=com"
rootdn          "cn=root,dc=***,dc=com"
rootpw          {SSHA}9nbNE9l1rTvPCoU95zgo6vVoL3nMRzMI
directory       /usr/local/openldap/var/openldap-data
index uid pres,eq
index cn,sn pres,eq,approx,sub
index   objectClass     eq
index entryCSN,entryUUID eq
syncrepl rid=001
 provider=ldap://192.168.1.8
 type=refreshAndPersist
 retry="5 5 300 +"
 searchbase="dc=***,dc=com"
 attrs=*
 binddn="cn=root,dc=***,dc=com"
 credentials=secret
 mirrormode true
 
overlay syncprov
syncprov-checkpoint 50 10
database monitor
loglevel 256
 
 
 Thanks Regards
 
  Piyush Joshi
  9415414376
 
 
 
 
                                  




--
Regards

Piyush Joshi
9415414376