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.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options