I have been trying to enable logging in my OpenLDAP setup (in Oracle Enterprise Linux 6.5) , but no logs are being generated in /var/log/slapd/slapd.log.
Followed these steps to enable logging :
- Edited the slapd.conf file :
# grep -i loglevel /etc/openldap/slapd.conf
loglevel -1
- Did the setup for the log directory in /var/log/slapd # cd /var/log/slapd ; ls -ltr
-rw------- 1 root root 217 May 21 19:48 slapd.log
- Edited the rsyslog config file
# grep -i local4 /etc/rsyslog.conf
local4. /var/log/slapd/slapd.log*
- restarted the openldap service and also the rsyslogger :
# service rsyslog restart
# service slapd restart
But even after doing these steps , we are not seeing logs captured in the slapd.log file . Only log seen is the below line :
more /var/log/slapd/slapd.log
May 21 19:48:12 sprdneval slapd[2961]: @(#) $OpenLDAP: slapd 2.4.39 (Aug 16 2014 20:41:55) $#012#[email protected] .oracle.com:/builddir/build/BUILD/openldap-2.4.39/openldap-2.4.39/build-servers/servers/slapd
Am i missing to do something blindingly obvious ?
Regards, Hari
grep -R slapd /var/log/*
– Disbursement/etc/openldap/slapd.d
? – Disbursement# ls -lrt /etc/openldap/slapd.d
drwx------ 3 ldap ldap 4096 Apr 9 13:37 cn=config
-rw------- 1 ldap ldap 1281 Apr 9 13:38 cn=config.ldif
– Geiger