Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 328731

Summary: Mistake in LDAP code sample 2.5
Product: [OLD] Docs on www.gentoo.org Reporter: skolima
Component: Other documentsAssignee: Docs Team <docs-team>
Status: RESOLVED NEEDINFO    
Severity: normal CC: hwoarang, ldap-bugs
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.gentoo.org/doc/en/ldap-howto.xml
Whiteboard:
Package list:
Runtime testing required: ---

Description skolima 2010-07-17 14:21:27 UTC
openldap-2.4.19-r1 fails to start when I use the configuration line 

OPTS="-F /etc/openldap/slapd.d -h 'ldaps:// ldap:// ldapi://%2fvar%2frun%2fopenldap%2fslapd.sock'"

in /etc/conf.d/slapd because this directory does not exist.

Reproducible: Always
Comment 1 nm (RETIRED) gentoo-dev 2010-07-17 16:58:46 UTC
Can you please post what the configuration file does say?

We just updated that listing to match LDAP 2.3; if it's changed for 2.4, we need to know what the correct config is.
Comment 2 skolima 2010-07-17 18:20:11 UTC
This is my first time trying to install LDAP, so I don't exactly know what should be in this config file. However, I've just tried the ebuild for 2.3.43-r1, and it also does not have any files in the directory '/etc/openldap/slapd.d', so the '-F /etc/openldap/slapd.d' will not work for the 2.3 version from portage as well.
Comment 3 nm (RETIRED) gentoo-dev 2010-07-17 19:18:20 UTC
Per bug #325497, that OPTS line is used because it's part of the default slapd config file shipped by Gentoo in the ebuild.

CCing Markos, since he was the one who filed that bug with the correction to the guide. Hopefully he can shed some light on what's going on.
Comment 4 Markus Ullmann (RETIRED) gentoo-dev 2010-07-17 19:37:38 UTC
Hm you got a valid point there
you need to run slaptest -f /path/to/configfile -F /path/to/newconfig.d once so that it converts your slapd.conf to the newstyle config database format...
Comment 5 nm (RETIRED) gentoo-dev 2011-03-02 09:31:55 UTC
(In reply to comment #4)
> Hm you got a valid point there
> you need to run slaptest -f /path/to/configfile -F /path/to/newconfig.d once so
> that it converts your slapd.conf to the newstyle config database format...

So what exactly needs to change, here?

The code listing currently says:

# Note: we don't use cn=config here, so stay with this line:
OPTS="-F /etc/openldap/slapd.d -h 'ldaps:// ldap:// ldapi://%2fvar%2frun%2fopenldap%2fslapd.sock'"

. . . but what *should* it say?