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

OpenLDAP multimaster



Hello Team,

I am facing an issue with setting up OpenLDAP multimaster replicaiton. It is happening only one time and it is giving an error in the server log file that "hdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found".

Below are my configuration details.

Operating system: Ubuntu 12.04.2
cat /etc/ldap/slapd.d/cn\=config.ldif

# AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify.
# CRC32 96647d53
dn: cn=config
objectClass: olcGlobal
cn: config
olcArgsFile: /var/run/slapd/slapd.args
olcLogLevel: none
olcLogLevel: -1
olcPidFile: /var/run/slapd/slapd.pid
olcToolThreads: 1
structuralObjectClass: olcGlobal
creatorsName: cn=config
olcAllows: bind_v2
olcServerID: 3 ldap://vm3.test.example.com
olcServerID: 4 ldap://vm4.test.example.com
entryUUID: 7bfbb79a-6d19-1032-9008-c1a20821a82c
createTimestamp: 20130619104813Z
entryCSN: 20130619104813.603914Z#000000#000#000000
modifiersName: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
modifyTimestamp: 20130619104813Z
contextCSN: 20130619104818.925492Z#000000#000#000000
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
cat /etc/ldap/slapd.d/cn\=config/olcDatabase\=\{1\}hdb.ldif
# AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify.
# CRC32 2b434e34
dn: olcDatabase={1}hdb
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {1}hdb
olcDbDirectory: /var/lib/ldap
olcSuffix: dc=test,dc=example,dc=com
olcLastMod: 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: objectClass eq
structuralObjectClass: olcHdbConfig
entryUUID: 7bfd08b6-6d19-1032-9012-c1a20821a82c
createTimestamp: 20130619104813Z
creatorsName: cn=config
olcRootDN: cn=admin,dc=test,dc=example,dc=com
olcRootPW:: YWRtaW5AMTIz
olcSyncrepl: {0}rid=500 provider=ldap://vm3.test.example.com binddn="cn=admin,dc=te
 st,dc=example,dc=com" bindmethod=simple credentials=admin@123 searchbase="dc=emb,d
 c=slb,dc=com" type=refreshOnly interval=00:00:00:10 retry="5 5 300 +" timeout
 =1
olcSyncrepl: {1}rid=600 provider=ldap://vm4.test.example.com binddn="cn=admin,dc=te
 st,dc=example,dc=com" bindmethod=simple credentials=admin@123 searchbase="dc=emb,d
 c=slb,dc=com" type=refreshOnly interval=00:00:00:10 retry="5 5 300 +" timeout
 =1
olcMirrorMode: TRUE
entryCSN: 20130619105336.281097Z#000000#000#000000
modifiersName: cn=admin,cn=config
modifyTimestamp: 20130619105336Z
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
cat /etc/ldap/slapd.d/cn\=config/olcDatabase\=\{0\}config.ldif
# AUTO-GENERATED FILE - DO NOT EDIT!! Use ldapmodify.
# CRC32 882cef38
dn: olcDatabase={0}config
objectClass: olcDatabaseConfig
olcDatabase: {0}config
olcAccess: {0}to * by dn.exact=gidNumber=0+uidNumber=0,cn=peercred,cn=external
 ,cn=auth manage by * break
structuralObjectClass: olcDatabaseConfig
entryUUID: e237277c-6d1b-1032-87ac-4153a9d6c230
creatorsName: cn=config
createTimestamp: 20130619110523Z
olcRootDN: cn=admin,cn=config
olcRootPW:: YWRtaW5AMTIz
olcSyncrepl: {0}rid=100 provider=ldap://vm3.test.example.com binddn="cn=admin,cn=co
 nfig" bindmethod=simple credentials=admin@123 searchbase="cn=config" type=ref
 reshAndPersist retry="5 5 300 5" timeout=1
olcSyncrepl: {1}rid=200 provider=ldap://vm4.test.example.com binddn="cn=admin,cn=co
 nfig" bindmethod=simple credentials=admin@123 searchbase="cn=config" type=ref
 reshAndPersist retry="5 5 300 5" timeout=1
olcMirrorMode: TRUE
entryCSN: 20130619110524.008790Z#000000#000#000000
modifiersName: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
modifyTimestamp: 20130619110524Z
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

:/var/lib/ldap# ls -ltrh
total 1.4M
-rw-r--r-- 1 openldap openldap   96 Jun 19 15:05 DB_CONFIG
-rw------- 1 openldap openldap 8.0K Jun 19 15:05 objectClass.bdb
-rw------- 1 openldap openldap  32K Jun 19 15:05 id2entry.bdb
-rw------- 1 openldap openldap 8.0K Jun 19 15:05 dn2id.bdb
-rw------- 1 openldap openldap  10M Jun 19 15:05 log.0000000001
-rw------- 1 openldap openldap  32K Jun 19 15:05 __db.006
-rw------- 1 openldap openldap 160K Jun 19 15:05 __db.004
-rw------- 1 openldap openldap 360K Jun 19 15:05 __db.002
-rw------- 1 openldap openldap  24K Jun 19 15:05 __db.001
-rw-r--r-- 1 openldap openldap 2.0K Jun 19 15:05 alock
-rw------- 1 openldap openldap 2.6M Jun 19 15:05 __db.003
-rw------- 1 openldap openldap 1.3M Jun 19 15:05 __db.005





--
Thanks & Regards,
25dollarTech Team
https://sites.google.com/site/25dollartech/

Email: 25dollartechhelp@gmail.com