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

Re: completely removing directory so i can start over



Thanks very much for the suggestions, Ted.  

The actual problem turned out to be that i had previously installed
(built completely
from source without using apt-get source or dpkg) versions of the
openldap package
which were lingering and someone inserting the data into the slapd
install process (as
done by dpkg).  Once i moved the (and recreated an empty)
/usr/local/var/openldap-ldbm
directory, everything seems to work.

	~c




Theodore Knab wrote:
> 
> 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