ltb-project/openldap-deb

check new logging options in openldap 2.6

davidcoutadeur opened this issue · 4 comments

check new logging options in openldap 2.6

What's working in 2.5.7 is quite similar to 2.4 logging features:

  • directive logfile creates a file (this directive was also present in 2.4)
  • when OpenLDAP runs with -d (debug option, stay attached), then the logs sent to stderr are also sent to the logfile
  • the main logging system remains syslog

Sources:

Seems there is work for a global refactoring of logging system. Wait and see in 2.6 / 3.0 OpenLDAP version

new 2.6 version relies on logfile directive
See ITS#6949 https://bugs.openldap.org/show_bug.cgi?id=6949

For information, see this config example: (taken from https://bugs.openldap.org/show_bug.cgi?id=6949)

ldapmodify -x -H ldapi:/// -D cn=config -w secret
dn: cn=config
changetype: modify
add: olcLogFile
olcLogFile: /var/symas/slapd.log
-
add: olcLogFileOnly
olcLogFileOnly: TRUE
-
add: olcLogFileRotate
olcLogFileRotate: 12 10 1

Integrated in slapd-cli 2.9, included in openldap LTB 2.6.2 release