Bug 51920 - Many unnesessary "UNIVENTION_DEBUG_BEGIN : uldap.searchDn" messages in log files
Many unnesessary "UNIVENTION_DEBUG_BEGIN : uldap.searchDn" messages in log f...
Status: CLOSED DUPLICATE of bug 51200
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 4.4
Other Linux
: P5 enhancement (vote)
: UCS 5.0-1-errata
Assigned To: Arvid Requate
Florian Best
https://git.knut.univention.de/univen...
:
Depends on: 26218
Blocks:
  Show dependency treegraph
 
Reported: 2020-08-27 17:47 CEST by Arvid Requate
Modified: 2022-05-31 12:28 CEST (History)
4 users (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 1: Cosmetic issue or missing function but workaround exists
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 1: Nuisance – not a big deal but noticeable
User Pain: 0.011
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2012022221001026, 2020081821000232, 2021081621000332
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2020-08-27 17:47:03 CEST
I just saw this again with the office365 connector, the listener.log is spammed with:

===============================================================================
UNIVENTION_DEBUG_BEGIN  : uldap.searchDn filter=(&(cn=*)(|(objectClass=posixGroup)(objectClass=sambaGroupMapping))(gidNumber=5158)) base= scope=sub unique=0 required=0
UNIVENTION_DEBUG_END    : uldap.searchDn filter=(&(cn=*)(|(objectClass=posixGroup)(objectClass=sambaGroupMapping))(gidNumber=5158)) base= scope=sub unique=0 required=0
UNIVENTION_DEBUG_BEGIN  : uldap.searchDn filter=(&(cn=*)(|(objectClass=univentionGroup)(objectClass=sambaGroupMapping))(uniqueMember=uid=foobar1,cn=schueler,cn=users,ou=foo
5791,dc=domain,dc=net)) base= scope=sub unique=0 required=0
UNIVENTION_DEBUG_END    : uldap.searchDn filter=(&(cn=*)(|(objectClass=univentionGroup)(objectClass=sambaGroupMapping))(uniqueMember=uid=foobar1,cn=schueler,cn=users,ou=foo
5791,dc=domain,dc=net)) base= scope=sub unique=0 required=0
UNIVENTION_DEBUG_BEGIN  : uldap.searchDn filter=(&(cn=*)(|(objectClass=posixGroup)(objectClass=sambaGroupMapping))(gidNumber=5158)) base= scope=sub unique=0 required=0
UNIVENTION_DEBUG_END    : uldap.searchDn filter=(&(cn=*)(|(objectClass=posixGroup)(objectClass=sambaGroupMapping))(gidNumber=5158)) base= scope=sub unique=0 required=0
UNIVENTION_DEBUG_BEGIN  : uldap.searchDn filter=(&(cn=*)(|(objectClass=univentionGroup)(objectClass=sambaGroupMapping))(uniqueMember=uid=foobar2,cn=schueler,cn=users,ou=foo
5791,dc=domain,dc=net)) base= scope=sub unique=0 required=0
UNIVENTION_DEBUG_END    : uldap.searchDn filter=(&(cn=*)(|(objectClass=univentionGroup)(objectClass=sambaGroupMapping))(uniqueMember=uid=foobar2,cn=schueler,cn=users,ou=foo
5791,dc=domain,dc=net)) base= scope=sub unique=0 required=0
UNIVENTION_DEBUG_BEGIN  : uldap.searchDn filter=(&(cn=*)(|(objectClass=posixGroup)(objectClass=sambaGroupMapping))(gidNumber=5158)) base= scope=sub unique=0 required=0
UNIVENTION_DEBUG_END    : uldap.searchDn filter=(&(cn=*)(|(objectClass=posixGroup)(objectClass=sambaGroupMapping))(gidNumber=5158)) base= scope=sub unique=0 required=0
===============================================================================

The origin of this debug message goes back to CVS times.


+++ This bug was initially created as a clone of Bug #26218 +++

An Ticket #2012022221001026 ist aufgefallen, dass in den Standard Debugleveln in UCS 3.0 sehr viele unnötige Informationen aus dem UDM-Modul gelogged werden.

Kurzer Auszug aus der /var/log/univention/management-console-module-udm.log:
UNIVENTION_DEBUG_BEGIN  : admin.handlers.base.__getitem__ key = name
UNIVENTION_DEBUG_END    : admin.handlers.base.__getitem__ key = name
UNIVENTION_DEBUG_BEGIN  : admin.handlers.base.__getitem__ key = name
UNIVENTION_DEBUG_END    : admin.handlers.base.__getitem__ key = name
UNIVENTION_DEBUG_BEGIN  : admin.handlers.base.__getitem__ key = dnsEntryZoneReverse
UNIVENTION_DEBUG_END    : admin.handlers.base.__getitem__ key = dnsEntryZoneReverse
UNIVENTION_DEBUG_BEGIN  : admin.handlers.base.__getitem__ key = dnsEntryZoneReverse
UNIVENTION_DEBUG_END    : admin.handlers.base.__getitem__ key = dnsEntryZoneReverse
UNIVENTION_DEBUG_BEGIN  : admin.handlers.base.__getitem__ key = dnsEntryZoneReverse
UNIVENTION_DEBUG_END    : admin.handlers.base.__getitem__ key = dnsEntryZoneReverse
UNIVENTION_DEBUG_BEGIN  : admin.handlers.base.__getitem__ key = name
UNIVENTION_DEBUG_END    : admin.handlers.base.__getitem__ key = name
UNIVENTION_DEBUG_BEGIN  : admin.handlers.base.__getitem__ key = name
UNIVENTION_DEBUG_END    : admin.handlers.base.__getitem__ key = name
UNIVENTION_DEBUG_BEGIN  : admin.handlers.base.__getitem__ key = dnsEntryZoneAlias
UNIVENTION_DEBUG_END    : admin.handlers.base.__getitem__ key = dnsEntryZoneAlias

Man könnte hier evt. einmal prüfen, inwieweit diese Meldungen notwendig sind, oder durch ein alternatives Debuglevel unterdrückt werden können.
Comment 2 Daniel Tröder univentionstaff 2022-04-28 08:52:10 CEST
Created a UCS 5.0-1 branch in which the log level for most uldap output is raised from "info" to "debug": dtroeder/51920_raise_log_level
Comment 3 Florian Best univentionstaff 2022-04-28 12:30:29 CEST
(In reply to Daniel Tröder from comment #2)
> Created a UCS 5.0-1 branch in which the log level for most uldap output is
> raised from "info" to "debug": dtroeder/51920_raise_log_level

hmm. this is different to what is wanted in the initial bug description.
The bug description complains about DEBUG_BEGIN7DEBUG_END univention.debug.function log messages which have been removed in UCS 5.0 already.
Your changes change the log level for some relevant lines from INFO (3) to ALL (4) which I find not so good.

I would close this bug as WORKSFORME. ok?
Comment 4 Daniel Tröder univentionstaff 2022-04-28 12:40:03 CEST
Ah yes, I'll create a separate bug.
Comment 5 Arvid Requate univentionstaff 2022-04-28 14:19:57 CEST
How is this wokrsforme? Not for me, the reporter and the three attached tickets.
Comment 6 Florian Best univentionstaff 2022-04-28 14:33:46 CEST
(In reply to Arvid Requate from comment #5)
> How is this wokrsforme? Not for me, the reporter and the three attached
> tickets.
Because the code logging this noise has been removed in Bug #51200 git:43faea5db048784c84e45079a7eed08144fe5006.
Comment 7 Arvid Requate univentionstaff 2022-04-28 15:59:35 CEST

*** This bug has been marked as a duplicate of bug 51200 ***
Comment 8 Florian Best univentionstaff 2022-05-31 12:28:06 CEST
UCS 5.0 has been released:
 https://docs.software-univention.de/release-notes-5.0-0-en.html
 https://docs.software-univention.de/release-notes-5.0-0-de.html

If this error occurs again, please use "Clone This Bug".