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

Re: [SpamBlock] Re: problem with replication





Still struggling with replication... I have the dumped the configuration of the two servers.

errors on srv1...
Sep 22 14:08:17 srv1 slapd[29001]: do_syncrep2: rid=002 got search entry without Sync State control
Sep 22 14:08:17 srv1 slapd[29001]: do_syncrepl: rid=002 rc -1 retrying (4 retries left)

errors on srv2...
Sep 22 14:08:00 srv2 slapd[19652]: slap_global_control: unrecognized control: 1.3.6.1.4.1.4203.1.9.1.1

moving to cn=config has at times been confusing to me - especially trying to wrestle out what is actually in the server but this is what I have figured out is in the 2 servers...

SRV1 - ldapsearch -xLLL -b cn=config -D
 cn=admin,cn=config -W olcDatabase={1}hdb

dn: olcDatabase={1}hdb,cn=config

objectClass: olcDatabaseConfig

objectClass: olcHdbConfig

olcDatabase: {1}hdb

olcDbDirectory: /var/lib/ldap

olcSuffix: dc=ayr1,dc=local

olcAccess: {0}to
attrs=userPassword,shadowLastChange,sambaNTPassword,sambaLMPassword by
dn="cn=admin,dc=ayr1,dc=local" write by anonymous auth by
self write by * none

olcAccess: {1}to dn.base=""
by * read

olcAccess: {2}to * by
dn="cn=admin,dc=ayr1,dc=local" write by * read

olcLastMod: TRUE

olcRootDN: cn=admin,dc=ayr1,dc=local

olcRootPW: ****

olcSyncrepl: {0}rid=003
provider=ldap://srv1.ayr1.local binddn="cn=admin,dc=ayr1,dc=local" bindmethod=simple
credentials=**** searchbase="dc=ayr1,dc=local" type=refreshOnly
interval=00:00:00:10 retry="5 5 300 5" timeout=1

olcSyncrepl: {1}rid=004
provider=ldap://srv2.ayr1.local binddn="cn=admin,dc=ayr1,dc=local" bindmethod=simple
credentials=**** searchbase="dc=ayr1,dc=local" type=refreshOnly
interval=00:00:00:10 retry="5 5 300 5" timeout=1

olcMirrorMode: TRUE

olcDbCheckpoint: 512 30

olcDbConfig: {0}set_cachesize 0 2097152
0

olcDbConfig: {1}set_lk_max_objects 1500

olcDbConfig: {2}set_lk_max_locks 1500

olcDbConfig: {3}set_lk_max_lockers 1500

olcDbIndex: uid pres,eq

olcDbIndex: cn,sn,mail pres,eq,approx,sub

olcDbIndex: objectClass eq

olcDbIndex: displayName pres,sub,eq

olcDbIndex:
uidNumber,gidNumber,mailLocalAddress,uniqueMember eq

olcDbIndex: businessCategory sub

olcDbIndex: givenname eq,subinitial

olcDbIndex:
memberUid,sambaSID,sambaPrimaryGroupSID,sambaDomainName eq

olcDbIndex: default sub

SRV1 - ldapsearch
-xLLL -b cn=config -D cn=admin,cn=config -W olcDatabase={0}config

dn: olcDatabase={0}config,cn=config

objectClass: olcDatabaseConfig

olcDatabase: {0}config

olcRootDN: cn=admin,cn=config

olcRootPW:
{SSHA}kndAyVYfGOCNo4s/U6bvsuUUlfD7iNON

olcSyncrepl: {0}rid=001
provider=ldap://srv1.ayr1.local binddn="cn=admin,cn=config" bindmethod=simple
credentials=**** searchbase="cn=config" type=refreshAndPersist retry="5 5 300 5"
timeout=1

olcSyncrepl: {1}rid=002
provider=ldap://srv2.ayr1.local binddn="cn=admin,cn=config" bindmethod=simple
credentials=**** searchbase="cn=config" type=refreshAndPersist retry="5 5 300 5"
timeout=1

olcMirrorMode: TRUE



SRV2 - ldapsearch
-xLLL -b cn=config -D cn=admin,cn=config -W olcDatabase={0}config

dn: olcDatabase={0}config,cn=config

objectClass: olcDatabaseConfig

olcDatabase: {0}config

olcRootDN: cn=admin,cn=config

olcRootPW:
{SSHA}kndAyVYfGOCNo4s/U6bvsuUUlfD7iNON

olcSyncrepl: {0}rid=001
provider=ldap://srv1.ayr1.local binddn="cn=admin,cn=config" bindmethod=simple
credentials=**** searchbase="cn=config" type=refreshAndPersist retry="5 5 300 5"
timeout=1

olcSyncrepl: {1}rid=002
provider=ldap://srv2.ayr1.local binddn="cn=admin,cn=config" bindmethod=simple
credentials=**** searchbase="cn=config" type=refreshAndPersist retry="5 5 300 5"
timeout=1
olcMirrorMode: TRUE

SRV2 - ldapsearch
-xLLL -b cn=config -D cn=admin,cn=config -W olcDatabase={1}hdb

dn: olcDatabase={1}hdb,cn=config

objectClass: olcDatabaseConfig

objectClass: olcHdbConfig

olcDatabase: {1}hdb

olcDbDirectory: /var/lib/ldap

olcSuffix: dc=ayr1,dc=local

olcAccess: {0}to
attrs=userPassword,shadowLastChange,sambaNTPassword,sambaLMPassword by
dn="cn=admin,dc=ayr1,dc=local" write by anonymous auth by
self write by * none

olcAccess: {1}to dn.base="" by * read

olcAccess: {2}to * by dn="cn=admin,dc=ayr1,dc=local" write by * read

olcLastMod: TRUE

olcRootDN: cn=admin,dc=ayr1,dc=local

olcRootPW: ****

olcSyncrepl: {0}rid=003
provider=ldap://srv1.ayr1.local binddn="cn=admin,dc=ayr1,dc=local" bindmethod=simple
credentials=**** searchbase="dc=ayr1,dc=local" type=refreshOnly
interval=00:00:00:10 retry="5 5 300 5" timeout=1

olcSyncrepl: {1}rid=004
provider=ldap://srv2.ayr1.local binddn="cn=admin,dc=ayr1,dc=local" bindmethod=simple
credentials=**** searchbase="dc=ayr1,dc=local" type=refreshOnly
interval=00:00:00:10 retry="5 5 300 5" timeout=1

olcMirrorMode: TRUE

olcDbCheckpoint: 512 30

olcDbConfig: {0}set_cachesize 0 20971520

olcDbConfig: {1}set_lk_max_objects 1500

olcDbConfig: {2}set_lk_max_locks 1500

olcDbConfig: {3}set_lk_max_lockers 1500

olcDbIndex: uid pres,eq

olcDbIndex: cn,sn,mail pres,eq,approx,sub

olcDbIndex: objectClass eq

olcDbIndex: displayName pres,sub,eq

olcDbIndex: uidNumber,gidNumber,mailLocalAddress,uniqueMember eq

olcDbIndex: businessCategory sub

olcDbIndex: givenname eq,subinitial

olcDbIndex: memberUid,sambaSID,sambaPrimaryGroupSID,sambaDomainName eq

olcDbIndex: default sub


n anyone figure out what I am doing wrong?

Thanks

Craig

Ca