https://bugs.openldap.org/show_bug.cgi?id=9533
--- Comment #4 from Andrey akrush24@gmail.com --- (In reply to Ondřej Kuzník from comment #3)
On Tue, Apr 27, 2021 at 07:32:01AM +0000, openldap-its@openldap.org wrote:
I added creating different dit in different directory, unfortunately it didn't help me. LDAP still freezes.
dn: olcDatabase={#DITID#}mdb,cn=config [...] olcSyncRepl: rid=001
I would note that rids have to be unique within the same server.
Thank, I made RID unique for all DIT, but it didn't help me. ``` # cat > newdb.ldiff.template <<EOF! dn: olcDatabase={#DITID#}mdb,cn=config changetype: add objectClass: olcDatabaseConfig objectClass: olcMdbConfig olcDatabase: {#DITID#}mdb olcSuffix: dc=devmail,dc=srv,dc=local olcDbMaxSize: 1073741824 olcRootDN: cn=admin,dc=devmail,dc=srv,dc=local olcRootPW: 123 olcDbDirectory: /var/lib/openldap/openldap-data/#DITID# olcDbIndex: objectClass eq olcSyncRepl: rid=#RIDID1# provider=ldaps://ldap.ldap01.xxx.ru:637 binddn=cn=admin,dc=devmail,dc=srv,dc=local bindmethod=simple credentials=123 searchbase=dc=devmail,dc=srv,dc=local type=refreshAndPersist retry="5 5 300 5" timeout=1 olcSyncRepl: rid=#RIDID2# provider=ldaps://ldap.ldap02.xxx.ru:637 binddn=cn=admin,dc=devmail,dc=srv,dc=local bindmethod=simple credentials=123 searchbase=dc=devmail,dc=srv,dc=local type=refreshAndPersist retry="5 5 300 5" timeout=1 olcSyncRepl: rid=#RIDID3# provider=ldaps://ldap.ldap03.xxx.ru:637 binddn=cn=admin,dc=devmail,dc=srv,dc=local bindmethod=simple credentials=123 searchbase=dc=devmail,dc=srv,dc=local type=refreshAndPersist retry="5 5 300 5" timeout=1 olcMirrorMode: TRUE
dn: olcOverlay=syncprov,olcDatabase={#DITID#}mdb,cn=config changetype: add objectClass: olcOverlayConfig objectClass: olcSyncProvConfig olcOverlay: syncprov EOF! ``` and apply in loop (of course /var/lib/openldap/openldap-data/1..40 exist) ``` RIDID=3 for I in $(seq 1 40);do RIDID=$((RIDID+1)) RIDID1="$(printf %03d ${RIDID})" RIDID=$((RIDID+1)) RIDID2=$(printf %03d ${RIDID}) RIDID=$((RIDID+1)) RIDID3=$(printf %03d ${RIDID}) sed -e "s/devmail/devmail${I}/g" -e "s/#RIDID1#/${RIDID1}/g" -e "s/#RIDID2#/${RIDID2}/g" -e "s/#RIDID3#/${RIDID3}/g" -e "s/#DITID#/${I}/g" ./newdb.ldiff.template > newdb${I}.ldiff ldapmodify -H ldapi://%2Fvar%2Frun%2Fopenldap%2Fldapi -Y EXTERNAL -f ./newdb${I}.ldiff done ```