Univention Bugzilla – Bug 47196
Change default ldap/debug/level from 0 to "none" to log critical messages
Last modified: 2022-08-22 14:37:10 CEST
When the lmdb backend database reaches its maxsize and the slapd cannot perform a write request it simply terminates itself. With the standard log level of "0", there is actually no log message about the event and the reason. The slaps.conf manpage says: "In fact, if loglevel is set to 0, no logging occurs, so at least the none level is required to have high priority messages logged." So we should probably change the default loglevel from 0 to "none" (or its integer representation). The "LDAP for Rocket Scientists" book by Zytrax explicitly says: 32768 | 0x8000 | none : A misnomer - it will log messages that are not categorized - specifically including critical messages.
argh, we have many LDAP_DEBUG_ANY calls in our overlays -> pwd .../svn/patches/openldap/4.3-0-0-ucs/2.4.45+dfsg-1~bpo9+1 -> grep LDAP_DEBUG *| wc -l 68 which means there is quite a bit of (unnecessary) logging with "loglevel 32768" -> cat /var/log/syslog| grep slapd| wc -l 8551 after creating 1000 users. So i think we should fix the logging in our overlays first.
Yes, I also needed to change slapd log levels in connection.c and in the constraint overlay. r18189 | Fix debug levels in Unviention slapd overlays d3ffd3d141 | Advisory for OpenLDAP e040bc7256 | univention-ldap-server.postinst a9c8aa57d1 | Advisory for univention-ldap r18190 | Avoid LDAP_DEBUG_NONE and LDAP_DEBUG_ANY if not critical 68178976fb | Advisory-update for OpenLDAP
OK - ldap/debug/level default and update OK - log level in overlays OK - logging of critical errors OK - openldap yaml OK - univention-ldap yaml
I was informed that the test results since rebuilding the openldap package are showing problems. I am reopening this bug until this is cleared. Otherwise, the openlap package would be ready for release
Bug 47356 is set to verified.
nothing to do here, already verified
<http://errata.software-univention.de/ucs/4.3/155.html> <http://errata.software-univention.de/ucs/4.3/156.html>