I do have it working, but it appears that my data replication
information keeps getting lost
When I connect to the cn=config database, I see a bdb{1} and bdb{2}
cn. the first (or second sometimes) is the slapd.conf information,
and the other is the database records.
I'm thinking there is a conflict because after a restart for example,
I end up with only one and my sync replication information for the
regular data (not cn=config) disappears and I can't sync any longer.
should I be using a unique number for bdb{} in my ldif. Here is my
ldif file I'm using
dn: olcDatabase={1}bdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcbdbConfig
olcDatabase: {1}bdb
olcSuffix: dc=nitle,dc=org
olcDbDirectory: /home/ldap/openldap/var/openldap-data
olcRootDN: cn=xxxx,dc=nitle,dc=org
olcRootPW: xxxxx
olcSyncRepl: rid=010 provider=ldap://ldap1.nitle.org:0000
binddn="cn=xxxx,ou=replication,dc=nitle,dc=org" bindmethod=simple
credentials=xxxxx searchbase="dc=nitle,dc=org" type=refreshOnly
interval=00:00:00:10 retry="5 5 300 5" timeout=1 schemachecking=off
olcSyncRepl: rid=011 provider=ldap://ldap2.nitle.org:0000
binddn="cn=xxxx,ou=replication,dc=nitle,dc=org" bindmethod=simple
credentials=xxxx searchbase="dc=nitle,dc=org" type=refreshOnly
schemachecking=off
interval=00:00:00:10 retry="5 5 300 5" timeout=1
olcMirrorMode: TRUE
dn: olcOverlay=syncprov,olcDatabase={1}bdb,cn=config
changetype: add
objectClass: olcOverlayConfig
objectClass: olcSyncProvConfig
olcOverlay: syncprov
On Jan 7, 2008, at 5:43 PM, Gavin Henry wrote:
<quote who="Chris G. Sellers">
Ok, I just made a change to my config and it appears to be working.
I referenced my master+slave setup, and I saw
overlay syncprov
This was cleary stated in the blog post though:
This sets up syncrepl as a provider (since these are all masters):
CODE:
dn: cn=module,cn=config
objectClass: olcModuleList
cn: module
olcModulePath: /usr/local/libexec/openldap
olcModuleLoad: syncprov.la
AND:
dn: olcOverlay=syncprov,olcDatabase={0}config,cn=config
changetype: add
objectClass: olcOverlayConfig
objectClass: olcSyncProvConfig
olcOverlay: syncprov
;-)