Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 366515 - net-dns/openldap-2.4.24 won't start with the config mentioned in the HowTo
Summary: net-dns/openldap-2.4.24 won't start with the config mentioned in the HowTo
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Sven Vermeulen (RETIRED)
URL: http://www.gentoo.org/doc/en/ldap-how...
Whiteboard:
Keywords:
Depends on: 176075
Blocks:
  Show dependency tree
 
Reported: 2011-05-08 23:51 UTC by Mark Schmale
Modified: 2011-08-15 20:27 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Schmale 2011-05-08 23:51:07 UTC
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
Comment 1 Sven Vermeulen 2011-05-10 19:40:31 UTC
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.
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2011-08-15 20:27:21 UTC
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.