Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 08-04-2010, 10:55 AM   #1
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,064
Blog Entries: 1

Rep: Reputation: 90
ubuntu (lucid) - clearing/flushing/purging slapd


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?

Thanks in advance.

Last edited by eantoranz; 08-04-2010 at 10:58 AM.
Old 08-04-2010, 01:17 PM   #2
Senior Member
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
To completely remove slapd, just run the following command (this will also remove all of the configuration files):
$ sudo apt-get purge slapd
Old 08-04-2010, 01:55 PM   #3
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,064
Blog Entries: 1

Original Poster
Rep: Reputation: 90
I tried with apt-get remove --purge before. Would it have the same results? Cause that didn't work.
Old 08-05-2010, 12:45 AM   #4
LQ Newbie
Registered: Oct 2004
Posts: 17

Rep: Reputation: 1
Try manually removing the ldap database. The database location is "/var/lib/ldap". You may try "rm -rf /var/lib/ldap/*"
Old 09-14-2011, 03:42 PM   #5
LQ Newbie
Registered: Sep 2011
Posts: 1

Rep: Reputation: Disabled
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:
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:
sudo apt-get --reinstall install slapd ldap-utils
but I get the following when I try and do the tutorials again:
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.


lucid, openldap, slapd, ubuntu

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Perfect Server - Ubuntu Lucid Lynx (Ubuntu 10.04) [ISPConfig 2] LXer Syndicated Linux News 0 05-02-2010 06:32 PM
LXer: Top 5 Ubuntu Artwork Wallpapers From The Ones Shortlisted For Ubuntu Lucid 10.0 LXer Syndicated Linux News 0 04-02-2010 10:21 PM
LXer: 15 More Exceptional Wallpapers from Ubuntu Artwork Pool for Ubuntu Lucid 10.04 LXer Syndicated Linux News 0 03-27-2010 01:30 AM
LXer: 15 Beautiful Wallpapers from Ubuntu Artwork Pool for Ubuntu 10.04 Lucid Lynx LXer Syndicated Linux News 0 02-23-2010 12:11 PM
LXer: Installing all new Ubuntu Tweak 0.5.1 in Ubuntu Karmic, Lucid LXer Syndicated Linux News 0 02-02-2010 11:50 PM

All times are GMT -5. The time now is 09:29 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration