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

How to delete openldap database

Fresh install of openldap 2.4.23 and friends on RHEL6/CentOS6 comes with dc=my-domain,dc=com database.

After starting slapd when I try to delete it the server is not willing to perform:

# ldapsearch -x -LLL -s base namingContexts
namingContexts: dc=my-domain,dc=com

# ldapsearch -Q -LLL -Y EXTERNAL -H ldapi:/// -b cn=config dn
dn: cn=config

dn: cn=schema,cn=config

dn: cn={0}corba,cn=schema,cn=config

... (snip) ...

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

# ldapdelete -Q -Y EXTERNAL -H ldapi:/// -v olcDatabase={2}bdb,cn=config
ldap_initialize( ldapi:///??base )
deleting entry "olcDatabase={2}bdb,cn=config"
ldap_delete: Server is unwilling to perform (53)

I can delete /etc/openldap/slapd.d/cn\=config/olcDatabase\=\{2\}bdb.ldif file before starting slapd but what is the proper way of deleting this database?

Thank you