LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ubuntu (lucid) - clearing/flushing/purging slapd (https://www.linuxquestions.org/questions/linux-networking-3/ubuntu-lucid-clearing-flushing-purging-slapd-824147/)

eantoranz 08-04-2010 10:55 AM

ubuntu (lucid) - clearing/flushing/purging slapd
 
Hi!

I'd like to clear the slapd DB so that I could reinstall it from scratch, however, when I remove the package and reinstall it, I still get some items in there.

How can I purge/flush/remove everything from slapd?

Instructions I follow to do the set up?
https://help.ubuntu.com/10.04/server...ap-server.html

Thanks in advance.

indienick 08-04-2010 01:17 PM

To completely remove slapd, just run the following command (this will also remove all of the configuration files):
Code:

$ sudo apt-get purge slapd

eantoranz 08-04-2010 01:55 PM

I tried with apt-get remove --purge before. Would it have the same results? Cause that didn't work.

aneeshk_k 08-05-2010 12:45 AM

Try manually removing the ldap database. The database location is "/var/lib/ldap". You may try "rm -rf /var/lib/ldap/*"

wdschei 09-14-2011 03:42 PM

This is my first post to this forum and I know the thread is a bit old, but I am desperately trying to find the answer to this thread.

Did anybody figure out how to completely remove slapd?

I have performed the following on an Ubuntu Server 11.04 box:
Code:

sudo apt-get --auto-remove purge -y slapd ldap-utils libnss-ldap ldapscripts unixodbc
sudo apt-get clean
sudo apt-get update
sudo rm -Rf /etc/ldap/*
sudo rm -Rf /var/lib/ldap/*
sudo rm -Rf /var/backups/*ldapdb*

then I:
Code:

sudo apt-get --reinstall install slapd ldap-utils
but I get the following when I try and do the tutorials again:
Code:

adding new entry "olcDatabase=hdb,cn=config" ldap_add: Other (e.g., implementation specific) error (80) additional info: <olcSuffix> namingContext already served by a preceding hdb database
There appears to be a tertiary copy of the database somewhere that is brought back to life even on a reinstall.

Thanks for all the help.


All times are GMT -5. The time now is 10:44 PM.