Hi,
I have a testing database which appears in slapcat output as:
---
dn: olcDatabase={2}hdb,cn=config
objectClass: olcDatabaseConfig
objectClass: olcHdbConfig
olcDatabase: {2}hdb
olcDbDirectory: /var/mytest
olcSuffix: dc=example,dc=org
olcRootDN: cn=admin,dc=example,dc=org
olcRootPW:: <password cut>
olcDbIndex: objectClass eq
olcDbIndex: memberUid eq
structuralObjectClass: olcHdbConfig
entryUUID: cdabedf0-6a03-1030-90e5-d10501c8fbf2
creatorsName: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
createTimestamp: 20110902230532Z
olcAccess: {0}to attrs=userPassword by anonymous auth by
dn="cn=replication,dc=example,dc=org" read by self write by * none
olcAccess: {1}to dn.subtree="ou=People,dc=example,dc=org" by users
read by * none
olcAccess: {2}to * by dn="cn=replication,dc=example,dc=org" read
entryCSN: 20110905234735.466413Z#000000#000#000000
modifiersName: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
modifyTimestamp: 20110905234735Z
---
I need to drop it completely. To delete data I stop slapd, rm /var/mytest/*
and restart slapd. But I also need to drop database config. I tried:
# ldapdelete -r -Y EXTERNAL -H ldapi:/// "olcDatabase={2}hdb,cn=config"
SASL/EXTERNAL authentication started
SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth
SASL SSF: 0
ldap_delete: Server is unwilling to perform (53)
The debug log says I get manage privilege to all. Maybe there is another way
to address this DB (e.g. by UUID)? How do I delete this DB config?
Thank you.
--
Best regards,
Styopa Semenukha.
xmpp:styopa@jabber.org