[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: completely removing directory so i can start over
Actually there is a better way than purging the files.
You can simply move the directory.
Make sure you shut down the slapd daemon first.
grep -i directory slapd.conf
...
directory /var/lib/ldap/
...
cd /var/lib/ldap
mkdir .old-stuff-1
cp * .old-stuff-1
Now you can restart as long as you have kept your ldif files.
> cderr:/usr/src# dpkg --purge slapd ldap-utils ldap-gateways
> (Reading database ... 101593 files and directories currently installed.)
> Removing slapd ...
> Stopping OpenLDAP: slapd.
> dpkg - warning: while removing slapd, directory `/etc/ldap/schema' not
> empty so not removed.
> dpkg - warning: while removing slapd, directory `/etc/ldap' not empty so
> not removed.
> Purging configuration files for slapd ...
> Removing ldap-utils ...
> Removing ldap-gateways ...
> cderr:/usr/src# dpkg -i ldap-utils_2.0.23-3_i386.deb
> Selecting previously deselected package ldap-utils.
> (Reading database ... 101541 files and directories currently installed.)
> Unpacking ldap-utils (from ldap-utils_2.0.23-3_i386.deb) ...
> Setting up ldap-utils (2.0.23-3) ...
---------------------
Ted Knab