Description of problem: Openldap LOG don't seem to work on Fedora. Version-Release number of selected component (if applicable): 2.1.22 How reproducible: Add these line into the Files respectively. /etc/openldap/slapd.conf loglevel 256 /etc/syslog.conf # Ldap Message to be ldap.log local4.* /var/log/ldap.log Restart Syslod Restart ldap See if you can get your log files on /var/log/ldap.log Steps to Reproduce: 1. Add something in ldap 2. see if the the adding is log under /var/log/ldap.log Actual results: Nothing will be in the ldap.log It seem that the log is not running at all Expected results: There should be log on ldap.log Additional info: There is a workround for this. On /etc/rc.d/init.d/ldap At line 40 and 43 Change from daemon ${slapd} -u ldap -h '"ldap:/// ldaps:///"' -l deamon $OPTIONS $SLAPD_OPTIONS RETVAL=$? else daemon ${slapd} -u ldap -h "ldap:///" -l deamon $OPTIONS $SLAPD_OPTIONS TO daemon ${slapd} -u ldap -h '"ldap:/// ldaps:///"' -l local4 $OPTIONS $SLAPD_OPTIONS RETVAL=$? else daemon ${slapd} -u ldap -h "ldap:///" -l local4 $OPTIONS $SLAPD_OPTIONS (Please take note, this change deamon to local4 only) That all, Thank You.
Why changing facility back to local4? That makes no sense. local* is for user-installed special application things. It should never be occupied by software by default.
Oh? Then what should it be? I change it back to local4 as because the log don't really work in other facility. Do you have any better solution?
It's been runtime-configurable for a while now. Set "SLAPD_OPTIONS='-l daemon'" in /etc/sysconfig/ldap, and it won't matter either way. There were instances on openldap's mailing lists where this change from the upstream default confused and infuriated people, so my resistance to changing it was even lower.
Removing "-l daemon" from the list of options supplied by the init script in 2.1.25-1. As noted, any SLAPD_OPTIONS set in /etc/sysconfig/ldap will be passed to slapd at startup time, so it can be set there to override it.
Em Sorry some follow up. when moving -l to daemon, it would require syslog.conf to add this daemon isn't it? Can you have that done as well, Nalin Dahyabhai. so that after install of Openldap the daemon log will be there. Thank You
Oh and also the logrotate :) sorry I forget.