Configure Logging OpenLDAP CentOS 6

Configure Logging OpenLDAP CentOS 6

Configure Logging OpenLDAP CentOS 6

OpenLDAP by default does not configure logging, so we need to do this step manually in order to be able to diagnose problems. Let’s get started, login to your LDAP server and su to root

here are the different levels of logging, and what they mean:

-1    all
0    no logging
1    trace function calls
2    packet-handling debugging
4    heavy trace debuggin
8    connection management
16    packets sent and received
32    search filter processing
64    configuration file processing
256    statistics of connections
512    print entry debugging

** It’s important to understand that if you want to log multiple values, add the sum together, as an example 256+512 = log number you would use below.

from here edit the slapd.conf

configure the log level appropriate for your environment, in this case we are using -1 as an example, you should tune for your environment

setup the log directory in /var/log/slapd

now edit the rsyslog config file

append the following to the very end of the file:

restart the openldap service

restart the rsyslogger

you should be in business now!

check the log file

cat /var/log/slapd/slapd.conf

you should now see logging

that’s it!

Hosted Linux Servers at www.zwiegnet.com/go

Leave a Reply

Your email address will not be published. Required fields are marked *