https://bugs.openldap.org/show_bug.cgi?id=9678
--- Comment #1 from Ondřej Kuzník ondra@mistotebe.net --- On Fri, Sep 10, 2021 at 07:41:01AM +0000, openldap-its@openldap.org wrote:
Calling
slapadd -n0 -F/home/d/ldap/conf <<ABC [...] dn: olcDatabase=config,cn=config objectClass: olcDatabaseConfig olcDatabase: config olcRootDN: uid=yyy,cn=users,dc=example,dc=org olcRootPW: zzz ABC
Hi Dilian, thanks for the report.
It seems that config_add_internal calls backend_destroy_one() for the config backend invalidating the memory for the rest of the run. We check to make sure we don't free the frontend but we don't check for cn=config. cn=config doesn't keep a pointer to its BackendDB or BackendInfo so a fix should find a way around that.
Regards,