I tried to install OpenLDAP using the Gentoo LDAP HowTo. As mentioned in the text i wrote the following into "/etc/conf.d/slapd": OPTS="-F /etc/openldap/slapd.d -h 'ldaps:// ldap:// ldapi://%2fvar%2frun%2fopenldap%2fslapd.sock'" But slapd refuses to start. These are the last three line of output of starting slapd with a debug level of 100: invalid config directory /etc/openldap/slapd.d, error 2 slapd stopped. connections_destroy: nothing to destroy. By asking some in #gentoo.de on freenode someone told me to use this OPTS: OPTS="-f /etc/openldap/slapd.conf -h '...'" After that, slapd runs perfectly. Reproducible: Always Steps to Reproduce: 1. install OpenLDAP as described in the HowTo 2. set debug level to something big (append -d 100 to the OPTS) 3. try to start /etc/init.d/slapd Actual Results: slapd quits Expected Results: slapd should start up and start being a ldap server
There are a couple of other things that need to be changed as well: - slapd configuration itself (reference to hdb module isn't needed anymore) - an additional schema that you need to put in (misc.schema) Also, the guide might need to be updated to reflect the new cn=config method and perhaps give a quick introduction on how to perform master/master synchronisation.
The updated OPTS as well as slapd configuration & needed schema's are now in the updated ldap-howto.xml. This is committed recently and should be visible online in an hour or so.