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

Re: How can I re-start the DB from scratch without damaging OpenLDAP?



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alessandro Bottoni wrote:
| I'm studying OpenLDAP and, from time to time, I need to delete the
existing
| database and re-start from scratch (because I'm still experimenting
with LDAP
| in order to find the right directory structure for a new application).
|
| Can I simply stop the LDAP daemon, delete the whole database directory
| (var/lib/ldap, in my case) and restart the LDAP daemon?

Yes.

| Is this method too brutal?

No

| Is there any "canonical" or "suggested" method to delete the old DB and
| re-start from scratch?

You defined it above.


| I'm using OpenLDAP 2.1.30 with the default BDB back-end on Mandrake 10.1.

Note that Mandrake 10.1 has openldap-2.2.17 or so in contrib, although
you may also consider rebuilding the current openldap-2.2.23-2mdk SRPM
from cooker (either one will install in parallel with your current
openldap-2.1.30 packages).

Or ... you can try these binaries:

http://plf.zarb.org/~bgmilne/10.1/openldap2.2/

Regards,
Buchan

- --
Buchan Milne                      Senior Support Technician
Obsidian Systems                  http://www.obsidian.co.za
B.Eng                                RHCE (803004789010797)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCCdy7rJK6UGDSBKcRAg4JAJ4gUbQnv3AN7vOYR5dF04RFHvbalQCfWwo7
heCMReZjPmsUGNxhX3NYNRc=
=ZTWS
-----END PGP SIGNATURE-----