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

Sync Replication searchbase muset be a suffix of a db?



Sync Replication searchbase muset be a suffix of a db?
I found,if not,when ldapdelete,provider will die at bdb_idl_fetch_key.(modify and add work ok)
folowing is my slapd.conf,when set consumer's searchbase="ou=test,ou?artment,o?,c=ZH",provider will die at bdb_idl_fetch_key.
when set consumer's searchbase="o?,c=ZH",it work well.

openldap 2.2.24 bdb4.2
consumer:
#######################################################################
# consumer database definitions
#######################################################################

database        bdb
suffix          "o?,c=ZH"
directory       ./testrun/db.2.a
rootdn          "cn=Manager,o?,c=ZH"
rootpw          secret

# Don't change syncrepl spec yet
syncrepl rid=1
                 provider=ldap://localhost:9011
                 updatedn="cn=Manager,o?,c=ZH"
                 binddn="cn=Manager,o?,c=ZH"
                 bindmethod=simple
                 credentials=secret
                 searchbase="ou=test,ou?artment,o?,c=ZH"
                 filter="(objectClass=*)"
                 attrs="*"
                 schemachecking=off
                 scope=sub
                 type=refreshAndPersist

provider:
#######################################################################
# provider database definitions
#######################################################################

database        bdb
suffix          "o?,c=ZH"
directory       ./testrun/db.1.a
rootdn          "cn=Manager,o?,c=ZH"
rootpw          secret

sessionlog 1 100