Summary: | net-nds/openldap-2.6.3: logging not working | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Michael Mair-Keimberger (mm1ke) <mmk> |
Component: | Current packages | Assignee: | Gentoo LDAP project <ldap-bugs> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | hydrapolic, jstein, kangie |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Michael Mair-Keimberger (mm1ke)
2023-01-31 20:23:18 UTC
Were you using syslog for logging? if so, you must include "debug" in USE flags https://forums.gentoo.org/viewtopic-p-8769313.html?sid=c1f4a1b376e80688d97bbe1c79599551 I was able to get logging to file with logfile /path/to/file.log However this did not enable me to do the filtering I had previously setup under syslog-ng I was only able to get syslog working with USE="debug" from: https://www.openldap.org/doc/admin26/slapdconfig.html#Global%20Directives section 6.2.1.5 loglevel "You must have configured OpenLDAP --enable-debug (the default) for this to work" (In reply to Bill Prendergast from comment #1) > https://www.openldap.org/doc/admin26/slapdconfig.html#Global%20Directives > section 6.2.1.5 loglevel > > "You must have configured OpenLDAP --enable-debug (the default) for this to > work" We should probably flip that to be on by default or unconditionally do it in that case.. (In reply to Sam James from comment #2) > > We should probably flip that to be on by default or unconditionally do it in > that case.. From my understanding (I've not tested much beyond getting syslog working again) you also won't get logfile nor stderr debug messages without --enable-debug For the build here (--enable-debug) the "logfile /path/to/file.log" is not written UNLESS -d is passed to slapd on startup. However with the openrc script as is, this also results in flooding the launching console with log messages as openldap also defaults to sending these log//debug messages to logfile AND stderr - need to either redirect stderr or include "logfile-only on" in the slapd.conf // "olcLogFileOnly: TRUE" in slapd.d Noting for clarity: built with --enable-debug "loglevel something" (or -s something in startup slapd arguments) only outputs to syslog. -d something, (with "loglevel something") outputs to logfile, stderr and syslog. |