Mac OS X Server 10.2: Server Status Does Not Display LDAP Log

By default slapd.log does not exist, and syslogd does not redirect LDAP logging data to /var/log/slapd.log.
Symptom

There is no data available when you try to locate the LDAP log in Server Status.


Solution

Important: This procedure requires restarting the server, so it is best performed during off-peak hours. Some LDAP clients, including Mac OS X and Mac OS X Server computers, may not reconnect until you restart them.

1. Open Terminal (/Applications/Utilities/).
2. Type: sudo touch /var/log/slapd.log
3. Press Return.
4. Type your administrator account password when prompted, and press Return.
5. Type: sudo pico /etc/syslog.conf
6. Press Return.
7. Add the following line to the end of the syslog.conf file, creating the space with the Tab key:

LOCAL4.* /var/log/slapd.log


Note: In the line above, four tabs are used. The exact number of tabs does not matter, so long as they are tabs and not spaces. This is an aesthetic choice. You may use only one tab, or use the number of tabs required to align the text with adjacent lines.

8. Press Control-X, then press Y to confirm.
9. Press Return. This will save the data to the syslog.conf file.
10. Restart the server.

When you log into Server Status, you should now see the LDAP log information.
Published Date: Feb 17, 2012