Q&A: Can I debug, why my slapd service is not starting?

Question:

Can I debug, why my slapd service is not starting?

Answer:

There is an effective ways to debug, if the logfile has no obvious hints:

You can try to start the service on commandline like this
/usr/sbin/slapd -h 'ldapi:/// ldap://:7389/ ldaps://:7636/'
or with the two other ports:
/usr/sbin/slapd -h 'ldapi:/// ldap://:7389/ ldap://:389/ ldaps://:7636/ ldaps://:636/'
And you can use debug “-d level”
/usr/sbin/slapd -h 'ldapi:/// ldap://:7389/ ldaps://:7636/' -d5

Mastodon