Hi,

I'm using the last release of slapd compiled with --debug option on ubuntu 11.10 :)

./configure --with-tls=openssl --with-threads --with-cyrus-sasl --enable-crypt --enable-debug --enable-cleartext --enable-spasswd --enable-dynacl --enable-aci --enable-modules --enable-wrappers --enable-rewrite --enable-rlookups


The ldap is functionnal, i add and modify data without problem, except the logging ..

I read tutorial, and documentation, and make some modification to ldap and rsyslog :

a > My modification on config :

dn: cn=config
replace: olcLogLevel
olcLogLevel: Stats

dn: cn=config
replace: olcLogFile
olcLogFile:/var/log/ldap.log


b > Modification on /etc/rsyslog.d/50-default.conf (syslog.conf doesn't exist anymore on ubuntu ...)
I change the last line on this block of rules :

#
# First some standard log files.  Log by facility.
#
auth,authpriv.*                 /var/log/auth.log
*.*;auth,authpriv.none          -/var/log/syslog
#cron.*                         /var/log/cron.log
#daemon.*                       -/var/log/daemon.log
kern.*                          -/var/log/kern.log
#lpr.*                          -/var/log/lpr.log
mail.*                          -/var/log/mail.log
#user.*                         -/var/log/user.log
local4.*                        /var/log/ldap.log


c > touch /var/log/ldap.log
d > chown openldap:openldap /var/log/ldap.log

I restart ( service rsyslog restart) and restart slapd ...

But this procedure doesn't work, and syslog continue to catch all debug information :(

Do you have and idea to help me ?
Best regards,
SR