Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to install openldap on ubuntu server 10.04 following this article: https://help.ubuntu.com/community/OpenLDAPServer

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:
https://bugs.launchpad.net/ubuntu/+source/openldap/+bug/442498

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

share|improve this question
add comment

3 Answers

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:

http://doc.ubuntu.com/ubuntu/serverguide/C/openldap-server.html http://blogger.ziesemer.com/2010/05/openldap-ubuntu-linux.html http://blogger.ziesemer.com/2010/06/openldap-password-permissions-config.html

And this one, which goes hand-in-hand with the last link above: http://www.openldap.org/lists/openldap-technical/201002/msg00181.html

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
add comment

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...: oracle.com/technetwork/database/berkeleydb/overview/index.html. They are slowly taking over the good opensource bits (MySQL,OpenOffice...) –  user64204 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
add comment

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
add comment

Your Answer

 
discard

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.