I have openldap v 2.4 running on centos7 and working but i cannot get it to log anything.
I have tried adding the below line to the rsyslog.conf file but i still do not get any log file.
LOCAL4.* /var/log/openldap/slapd.log
When i added this line i ran the below command to reload the rsyslog conf and also stopped and started openldap.
pkill -HUP rsyslog
I cant find any more instruction on how to enable logging.
Best Answer
To enable OpenLDAP debugs, you would want to add the following to your
slapd.conf
If you do not use
slapd.conf
, you may then pass that option to the slapd service. In debian/ubuntu, you would find some/etc/default/slapd
file, you may update itsSLAPD_OPTIONS
:We may then restart slapd:
Valid slapd log levels would include:
For further details, see http://www.openldap.org/doc/admin24/slapdconfig.html
Besides, as Jeff pointed it out, your syslog configuration looks wrong to begin with.
Should probably be:
Or: