How do I get openldap on Centos 6 to write anything to it's log files

Solution 1:

I haven't tried olcLogFile but by default, OpenLDAP log all information to rsyslog's local4 facility.

Add the following line to /etc/rsyslog.conf or /etc/rsyslog.d/ldap.conf:

local4.*                        /var/log/ldap.log

Restart the rsyslog service and check out this log.

Solution 2:

olcLogFile is only used on Windows because it lacks syslog.

The way to do log on your system is which that @quanta answered.

Solution 3:

As the reasoning regarding olcLogFile given in this answer is not true, I have to correct this.

Quoting the relevant part of slapd-config(5):

olcLogFile: <filename>
            Specify a file for recording debug log messages. By default
            these messages only go to stderr and are not recorded any‐
            where else. Specifying a logfile copies messages to both
            stderr and the logfile.