Hello all,

this is probably a really stupid question... But I cannot figure out how to start a freshly built slapd using only slapd-config configuration. I built and installed slapd 2.4.35:

./configure --prefix=$HOME/server/openldap --enable-modules --enable-overlays=mod --with-tls=openssl
make depend
make
make test
make install

After that I find a  slapd.conf and slapd.ldif in $HOME/server/openldap/etc/openldap. As I understood from the administrator's guide the slapd.conf approach is deprecated and should not be used. So I renamed the slapd.conf to slapd.conf.ignore so it is not picked up by default as I think it would be. But

sudo $HOME/server/openldap/libexec/slapd -s any -F $HOME/server/openldap/etc/openldap/

logs
 
ldif_read_file: no entry file "/home/dpr/server/openldap/etc/openldap//cn=config.ldif"

and slapd is stopped immediatelly

sudo $HOME/server/openldap/libexec/slapd -s any -F $HOME/server/openldap/etc/openldap/ -f $HOME/server/openldap/etc/openldap/slapd.ldif

yields

/home/dpr/server/openldap/etc/openldap/slapd.ldif: line 5: unknown directive <dn:> outside backend info and database definitions.

and again the demon stops. The only way I got the demon to start is by using the default slapd.conf or with the -f option pointing to a slapd.conf file.
Please advise.


Thanks!
Ralf