Getting Slapd Under CentOS 6 To Log Connections, Etc.
I am running the stock openLDAP-servers on a CentOS 6 system. Everything is working just fine, but I am trying to debug connections from a Ubuntu (18.04)
system and want to turn on logging in slapd, but although I can get slapd to create a log file, it never actually writes anything.
I have these two lines in /etc/openLDAP/slapd.d/cn=config.ldif:
olcLogFile: /var/log/slapd/log olcLogLevel: conns BER config ACL stats none
And although /var/log/slapd/log gets created, nothing is ever written to it.
What am I missing?
One thought on - Getting Slapd Under CentOS 6 To Log Connections, Etc.
I used misc debug flags for when I invoke slapd:
https://www.openLDAP.org/doc/admin24/runningslapd.html
Note these a bitflags, that can be combined:
256 (0x100 stats) stats log connections/operations/results
512 (0x200 stats2) stats log entries sent