Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
net-nds/openldap-2.6 no longer recording to syslog
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
XelKarin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2003
Posts: 84

PostPosted: Tue Jan 10, 2023 10:47 pm    Post subject: net-nds/openldap-2.6 no longer recording to syslog Reply with quote

I've recently updated from openldap-2.4 to openldap-2.6 and it no longer seems to be sending messages to the logs. The documentation for slapd.conf claims that it should log to syslog and stderr by default if a log file is not specified. There were some other changes between versions 2.4 and 2.6, such as the hdb database no longer being supported, but I successfully migrated to the recommended mdb database. Any thoughts on why syslog logging may not be working?


I have the following logging options set in my slapd.conf file:

Code:
loglevel  stats sync


*edit* Add slapd.conf log options
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Wed Jan 11, 2023 12:22 pm    Post subject: Reply with quote

Maybe build openldap with USE="debug".
And in
/etc/conf.d/slapd
use
Code:

OPTS="${OPTS_CONF} ..............-d <debug-level>

Plz see
Code:

 -d debug-level
              Turn on debugging as defined by debug-level.  If this option is specified, even with a zero argument,
              slapd will not fork or disassociate from the invoking terminal.  Some general  operation  and  status
              messages  are  printed for any value of debug-level.  debug-level is taken as a bit string, with each
              bit corresponding to a different kind  of  debugging  information.   See  <ldap_log.h>  for  details.
              Comma-separated  arrays  of  friendly names can be specified to select debugging output of the corre‐
              sponding debugging information.  All the names recognized by  the  loglevel  directive  described  in
              slapd.conf(5)  are  supported.  If debug-level is ?, a list of installed debug-levels is printed, and
              slapd exits.

              Remember that if you turn on packet logging, packets containing bind passwords will be output, so  if
              you redirect the log to a logfile, that file should be read-protected.

       -s syslog-level
              This  option  tells  slapd at what debug-level debugging statements should be logged to the syslog(8)
              facility.  The value syslog-level can be set to any value or combination allowed by  the  -d  switch.
              Slapd  logs all messages selected by syslog-level at the syslog(3) severity debug-level DEBUG, on the
              unit specified with -l.


from
man slapd
_________________
:)
Back to top
View user's profile Send private message
XelKarin
Tux's lil' helper
Tux's lil' helper


Joined: 29 Dec 2003
Posts: 84

PostPosted: Wed Jan 11, 2023 11:15 pm    Post subject: Reply with quote

Thanks. The `-d` option isn't required, but it seems the debug USE flag is required for logging now.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum