Sorry in advance if i'm missed something obvious (which is what the text of
this error makes me think), but i've spent 2 days on this and could use
another set of eyes. I hit the error in the subject when trying to set up
basic refreshAndPersist replication with 2 separate BDB databases defined
and populated. The error happens on only 1 of the databases (replication
works fine on the other.)
(slapd.conf for Master....)
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
pidfile /usr/local/var/run/slapd.pid
argsfile /usr/local/var/run/slapd.args
#######################################################################
# BDB database definitions
#######################################################################
database bdb
suffix "dc=exampleb1,dc=com"
rootdn "cn=kingb1,dc=exampleb1,dc=com"
rootpw password
directory /usr/local/var/openldap-data/bdb1
index objectClass,sn,mail,street,pager eq
database bdb
suffix "o=baseballs"
rootdn "cn=admin,o=baseballs"
rootpw password
directory /usr/local/var/openldap-data/bdb2
index objectClass,sn,mail,street,pager eq
overlay syncprov
syncprov-checkpoint 100 10
syncprov-sessionlog 100
database monitor
(slapd.conf for Slave...)
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
pidfile /usr/local/var/run/slapd.pid
argsfile /usr/local/var/run/slapd.args
#######################################################################
# BDB database definitions
#######################################################################
database bdb
suffix "dc=exampleb1,dc=com"
rootdn "cn=kingb1,dc=exampleb1,dc=com"
rootpw password
directory /usr/local/var/openldap-data/bdb1
index objectClass,sn,mail,street,pager eq
database bdb
suffix "o=baseballs"
rootdn "cn=admin,o=baseballs"
rootpw password
directory /usr/local/var/openldap-data/bdb2
index objectClass,sn,mail,street,pager eq
syncrepl rid=492
provider=ldap://9.00.00.000:389
type=refreshAndPersist
retry="120 +"
searchbase="dc=exampleb1,dc=com"
bindmethod=simple
binddn="cn=kingb1,dc=exampleb1,dc=com"
credentials=password
database monitor
I get the Master up and populated before starting the Slave. When i start
the Slave, i get the error. Here's the output with -d 256... (line 38 is
the end of the syncrepl chunk... the "credentials=password" line)
OpenLDAP 2.4.6 Standalone LDAP Server
(slapd)/test/slapd_multibackendsS.conf: li
ne 38: Base DN "dc=exampleb1,dc=com" is not within the database naming
context.+
CSMP0097I 22.50.28 CPU-C SS-BSS SSU-HPN IS-01
failed to add syncinfo+
CSMP0097I 22.50.28 CPU-C SS-BSS SSU-HPN IS-01
slapd stopped.+
CSMP0097I 22.50.28 CPU-C SS-BSS SSU-HPN IS-01
connections_destroy: nothing to destroy.+
If i modify the syncrepl statement in the slave to replicate the other
database, replication of "o=baseballs" works...
syncrepl rid=493
provider=ldap://9.00.00.000:389
type=refreshAndPersist
retry="120 +"
searchbase="o=baseballs"
bindmethod=simple
binddn="cn=admin,o=baseballs"
credentials=password
The data in "dc=exampleb1,dc=com" is straight from the output of the
MakeLDIF utility. I've added/searched/modified it a bunch before trying
this particular replication scenario.
So... how stupid am i?? Do you see anything i'm missing?
Thanks for your help...