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

RE: Deleting all directories

It does not except 'r' as an option. I am running Openldap 1.2.7.


-----Original Message-----
From: owner-openldap-software@OpenLDAP.org
[mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Jason Holland
Sent: Monday, November 06, 2000 4:34 PM
To: mmillsap@mvista.com; openldap-software@OpenLDAP.org
Subject: RE: Deleting all directories

I believe you want this

ldapdelete -D "your administrative dn" -r "top dn to delete"

the -r does a recursive delete from the dn on down.


> Does anyone know of a simple way to delete all entries for a given DN. I
> have tried using a wildcard with ldapdelete, but it didn't seem
> to work. My
> application is that I need to re-build my ldap every evening using an ldif
> file created automatically from a master database. Currently I just delete
> the ldap database files, restart the daemon, and import the ldif
> file. I was
> looking for a more eloquent solution.
> Thanks,
> Mike