[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Deleting database config
- To: openldap-technical@openldap.org
- Subject: Deleting database config
- From: Styopa Semenukha <semenukha@gmail.com>
- Date: Mon, 12 Sep 2011 22:44:22 +0300
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:mime-version:content-type :content-transfer-encoding:message-id; bh=0KB9KA1YO1PykGnOFfWRHtt/3nWF+p6RjTF6eBz2dcA=; b=cRMD91YHOx6ADs1X3TDh5AEM0VHvlxRevQaJ2cJRGpLKk9zkw7kOIibWkAhaBBN+6Y TpFzNJxPRBHx6SAGmu0jyl8JW9LpVedCpt0M159uW85NWg2yOUsA5Z9dCp+7XRF/t1Fj 2RQJBpnhrlnVcwzndP8Au3ReE/qatE30yBg+0=
- User-agent: KMail/1.13.7 (Linux/3.0.0-gcc46; KDE/4.6.5; x86_64; ; )
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