[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
clarification on N-way MMR
- To: openldap-technical@openldap.org
- Subject: clarification on N-way MMR
- From: mallapadi niranjan <niranjan.ashok@gmail.com>
- Date: Sun, 25 Mar 2012 11:54:17 +0530
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=nh4eXsHSCGg4NDqHQfbrmfdJWZRXbaaKgxCi/w2e4Xc=; b=k6SWh/JO59W2wrrlS5uvCRZ9Soctv8Kz/24iWaHOOk4B/gOHdZ4uuUrpnUUTeJr2ki ke/6jPgRBTRARpvsNTp1yR9m7gl5poZuNnFef5l/xyc52aFrw/9+hrAcRpNlsqMftsB1 3yAUpGLpvm3ejphBLLzJ35ntMAuQDbLPLiJFVbvbrhOO6k5Ho4BtoyzOo42YXRLnbJMn re5LNS1HQuVeF7aQiygdnvu/5o+x+yYgTVgDup7swXjnQOQpHSiTmcdgoVQIm5ZqNzWa 8YaJnZELHVULiYLj5UXu9rzo8dhZjrqXi5gccS2X7V5NmPgFnh1Y3b8n3J4Basiy27ur 75vA==
Hi all,
I am configuring N-way mmr between 2 Providers (there are no consumers as of now) . My master servers are in this case: ldap1.example.org and ldap2.example.org .
version used are:
openldap-servers-2.4.23-20.el6.x86_64
I am using http://www.openldap.org/doc/admin24/replication.html#N-Way%20Multi-Master as my reference for configuration.
My syncrepl for cn=config database is as follows:
#Specify ServerID for both the masters
dn: cn=config
changetype: modify
add: olcServerID
olcServerID: 101 ldap://ldap1.example.org
olcServerID: 201 ldap://ldap2.example.org
#Enable Syncprov Overlay for config database
dn: olcOverlay=syncprov,olcDatabase={0}config,cn=config
changetype: add
objectclass: olcOverlayConfig
objectclass: olcSyncProvConfig
olcOverlay: syncprov
#Configure SyncRepl for config database
dn: olcDatabase={0}config,cn=config
changetype: modify
add: olcSyncRepl
olcSyncRepl: rid=001 provider=ldap://ldap1.example.org binddn="cn=admin,cn=config" bindmethod=simple
credentials=config searchbase="cn=config" type=refreshAndPersist retry="5 5 300 5" timeout=1
olcSyncRepl: rid=002 provider=ldap://ldap2.example.org binddn="cn=admin,cn=config" bindmethod=simple
credentials=config searchbase="cn=config" type=refreshAndPersist retry="5 5 300 5" timeout=1
-
add: olcMirrorMode
olcMirrorMode: TRUE
my syncrepl for bdb is as follows:
dn: olcDatabase={2}bdb,cn=config
changetype: modify
add: olcSyncRepl
olcSyncRepl: rid=003 provider=ldap://ldap1.example.org binddn="cn=replicator,ou=Admins,dc=example,dc=org" bindmethod=simple
credentials=Secret123 searchbase="dc=example,dc=org" type=refreshAndPersist retry="5 5 5 +"
olcSyncRepl: rid=004 provider=ldap://ldap2.example.org binddn="cn=replicator,ou=Admins,dc=example,dc=org" bindmethod=simple
credentials=Secret123 searchbase="dc=example,dc=org" type=refreshAndPersist retry="5 5 5 +"
-
add: olcMirrorMode
olcMirrorMode: TRUE
dn: olcOverlay=syncprov,olcDatabase={2}bdb,cn=config
changetype: add
objectClass: olcOverlayConfig
objectClass: olcSyncProvConfig
olcOverlay: syncprov
Q) I would like to know should i have 2 syncrepl agreements in both Masters (ldap1.example.org and ldap2.example.org)
Q) On provider-1 (ldap1.example.org) can i just have 1 single olcsyncrepl specifying the provider as "ldap2" ?
dn: olcDatabase={2}bdb,cn=config
changetype: modify
add: olcSyncRepl
olcSyncRepl: rid=003 provider=ldap://ldap2.example.org binddn="cn=replicator,ou=Admins,dc=example,dc=org" bindmethod=simple
credentials=Secret123 searchbase="dc=example,dc=org" type=refreshAndPersist retry="5 5 5 +"
-
add: olcMirrorMode
olcMirrorMode: TRUE
Q) What is the use of specify the olcsyncrepl which is pointing to it's own provider ?
Any pointers on the above would be helpful
Regards
Niranjan