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.
--On Monday, September 12, 2011 10:44 PM +0300 Styopa Semenukha semenukha@gmail.com wrote:
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?
You use OpenLDAP 2.5 (not yet released) or you manually delete it from the command line until delete support is added.
--Quanah
--
Quanah Gibson-Mount Sr. Member of Technical Staff Zimbra, Inc A Division of VMware, Inc. -------------------- Zimbra :: the leader in open source messaging and collaboration
openldap-technical@openldap.org