Activate logging with OpenLDAP

OpenLDAP logs though Syslog facilities.

In slapd.conf

loglevel        256

In /etc/syslog.conf

local4.*                        -/var/log/slapd.log

Note the '-' before the full path of the logfile. It means asynchronous logging. Remove the '-' and syslog will write log synchronously and consequently slow down OpenLDAP.

Don't forget to restart both syslog and OpenLDAP. On Debian :

/etc/init.d/sysklogd restart
/etc/init.d/slapd restart

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <pre>. The supported tag styles are: <foo>, [foo].

More information about formatting options