Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install openldap on ubuntu server 10.04 following this article:

However sudo dpkg-reconfigure slapd is pretty useless as it only gives me this:
-Omit OpenLDAP server configuration? No
-Do you want the database to be removed when slapd is purged? No
-Allow LDAPv2 protocol? No

I was expecting more, like be able to create the database, but apparently this is an issue that was recently introduced:

Can someone give me the directions as to how setting up openldap please?

share|improve this question
up vote 2 down vote accepted

Unfortunately, the administrator guide is slightly out of date, especially since OpenLDAP is moving toward the cn=config style configuration, instead of the flat-file based slapd.conf. I'm still working on setting one up myself, but here are some resources I've found that make life a little easier:

And this one, which goes hand-in-hand with the last link above:

I mention that, because the only documentation on OpenLDAP's site regarding the memberOf overlay is geared toward the old flat-file config and hasn't been updated for the new style. It's rather frustrating trying to track down accurate documentation for OpenLDAP.

share|improve this answer

How about the official OpenLDAP Administrator's Guide Quickstart?

share|improve this answer
I started looking at this in the meantime. I wasn't aware but in order to compile, Berkeley DB needs to be installed, otherwise ./configure gives an configure: error: BDB/HDB: BerkeleyDB not available error. And guess who owns BerkeleyDB? Oracle...: They are slowly taking over the good opensource bits (MySQL,OpenOffice...) – Max Apr 14 '11 at 14:47
Is there a problem using the Ubuntu-supplied OpenLDAP and related binaries or do you want to compile from source for some specific reason? If you don't need to compile from source just use the Ubuntu packages and jump to configuring slapd. – rthomson Apr 15 '11 at 1:44

You can try to follow steps on this link: OpenLDAP installation steps on Ubuntu 10.10 (french). It is in french, but commands are universal, and you will be able to run an operationnal openldap server quickly (as I do successfully).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.