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
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.
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.
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.
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...
(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?