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

syncrepl breaks with 3 digit sid/rid (ITS#3055)

Full_Name: Kartik Subbarao
Version: 2.2
OS: Red Hat Linux 7.3
Submission from: (NULL) (

syncrepl breaks when a 3-digit rid/sid is configured. A simple way to reproduce
this problem is to edit slapd-syncrepl-master.conf and
slapd-syncrepl-slave-persist1.conf in the OpenLDAP test suite. Just change the
supplier id to 111 and the consumer rid to 111. Then run the test. Although the
test reports success, you'll see the following in slapd.4.log. Note how the
consumer eventually searches for "cn=syncrepl11" instead of "cn=syncrepl111"
(i.e. it truncates the extra '1'). Although it doesn't cause the particular test
to report an error, it causes major ongoing problems in a directory configured
this way. The workaround in the meantime is to use a single-digit sid/rid.

bdb_modify: cn=syncrepl11,o=university of michigan,c=us
bdb_dn2entry("cn=syncrepl11,o=university of michigan,c=us")
=> bdb_dn2id( "=university of michigan,c=us" )
<= bdb_dn2id: get failed: DB_NOTFOUND: No matching key/data pair found (-30990)
bdb_modify: dn2entry failed (-30990)
send_ldap_result: conn=4294967295 op=0 p=0
send_ldap_result: err=10 matched="" text=""
send_ldap_result: referral="ldap://localhost:9011/cn=syncrepl11,o=university%20o
null_callback : error code 0x9
be_modify failed (9)