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

RE: Deleting all Data

/etc/init.d/ldap stop

# /var/lib/ldap/example.com: 'directory' definition in 'slapd.conf' 
# that gives the path of folder in which database files reside
rm -rf /var/lib/ldap/example.com

/etc/init.d/ldap start

That's all!

-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org] On Behalf Of Quanah
Sent: Friday, October 15, 2004 10:32 AM
To: Edward de Jongh; openldap-software@OpenLDAP.org
Subject: Re: Deleting all Data

--On Friday, October 15, 2004 9:17 AM +0200 Edward de Jongh 
<Edwardd@discovery.co.za> wrote:

> Hi guys I am currently testing a system of mine and part of this
> involves populating an LDAP implementation. What I need to know is,
> one delete all BDB entries at once via the slap commands.
> I know we can delete singular entries, but not sure about all entries
> once.

Why not just erase the database?  It would be faster.


Quanah Gibson-Mount
Principal Software Developer
ITSS/Shared Services
Stanford University
GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html