Just after writing this, I seem to have found my answer with a properly crafted ldapdelete command:
ldapdelete -x -D "cn=Manager,dc=emea,dc=corp,dc=local" -w password -r "dc=root,dc=com" However, If I try and query openldap (anonymously) while the delete is happening, the ldapdelete command starts outputting:
ldap_search: Internal (implementation specific) error (80) additional info: internal error
As well as causing my LDAP client to return errors (other than the expected "no results"). Any idea why this is happening? Do I need to do something special before I start a recursive delete to allow normal LDAP requests to still function (even if they return nothing).
Thank you,
Chris
Hello all, At last I am managing to import everything successfully to OpenLDAP. Hoever, on a regular (possibly daily) basis I need to reimport everything, and make sure that old entries are not lingering. At the moment, to do this I am stopping OpenLDAP, deleting the database files, starting it again, and reimporting everything. I seem to be having problems with some connections lingering when the server is stopped, and it takes a while for these to time out. Is there any way I can delete the contents of the database without needing to know what is in there, using openldap commands, and without stopping and starting OpenLDAP? Thank you,
Chris