Bug 112730 - openldap Log
openldap Log
Product: Fedora
Classification: Fedora
Component: openldap (Show other bugs)
All Linux
high Severity high
: ---
: ---
Assigned To: Nalin Dahyabhai
Depends On:
  Show dependency treegraph
Reported: 2003-12-30 00:09 EST by Chan Min Wai
Modified: 2007-11-30 17:10 EST (History)
1 user (show)

See Also:
Fixed In Version: 2.1.25-1
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-01-08 14:15:25 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Chan Min Wai 2003-12-30 00:09:53 EST
Description of problem:
Openldap LOG don't seem to work on Fedora.

Version-Release number of selected component (if applicable):

How reproducible:
Add these line into the Files respectively.

loglevel        256

# 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
            daemon ${slapd} -u ldap -h "ldap:///" -l deamon $OPTIONS
            daemon ${slapd} -u ldap -h '"ldap:/// ldaps:///"' -l
            daemon ${slapd} -u ldap -h "ldap:///" -l local4 $OPTIONS

(Please take note, this change deamon to local4 only)

That all, Thank You.
Comment 1 Daniel Roesen 2004-01-08 10:13:33 EST
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.
Comment 2 Chan Min Wai 2004-01-08 14:08:38 EST
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?
Comment 3 Nalin Dahyabhai 2004-01-08 14:11:44 EST
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.
Comment 4 Nalin Dahyabhai 2004-01-08 14:15:25 EST
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.
Comment 5 Chan Min Wai 2004-03-12 00:36:07 EST
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
Comment 6 Chan Min Wai 2004-03-12 00:36:49 EST
Oh and also the logrotate :)

sorry I forget.

Note You need to log in before you can comment on or make changes to this bug.