OpenLDAP No such object (32)

Solution 1:

You need to find out what backend databases you have configured:

ldapsearch -H ldapi:/// -Y EXTERNAL -b "cn=config" -LLL -Q "olcDatabase=*" dn

The one you're looking for could be BDB, HDB or MDB.

(EDIT : one more /)

Solution 2:

Perhaps your second configured database isn't of the type bdb. For instance, CentOS 7 uses hdb by default.

dn: olcDatabase={2}hdb,cn=config