Issue 9710 - integrated lastbind debug statement at ANY level
Summary: integrated lastbind debug statement at ANY level
Status: VERIFIED DUPLICATE of issue 9156
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: slapd (show other issues)
Version: 2.5.7
Hardware: All All
: --- normal
Target Milestone: 2.5.8
Assignee: Quanah Gibson-Mount
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-30 01:44 UTC by Quanah Gibson-Mount
Modified: 2021-09-30 16:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Quanah Gibson-Mount 2021-09-30 01:44:28 UTC
For some reason, a debug statement for the newly integrated lastbind code is logging at ANY level, which seems incorrect:

        Debug( LDAP_DEBUG_ANY, "fe_op_lastbind: "
                "old pwdLastSuccess value=%s %lds ago\n",
                a->a_nvals[0].bv_val, bindtime == (time_t)-1 ? -1 : op->o_time - bindtime );


This results in log lines with every bind like:

Sep 30 01:41:42 ub18 slapd[5980]: fe_op_lastbind: old pwdLastSuccess value=20210930014121Z 21s ago

I think a different loglevel should be in use here.
Comment 1 Quanah Gibson-Mount 2021-09-30 15:33:46 UTC
Move to TRACE
Comment 2 Quanah Gibson-Mount 2021-09-30 16:03:41 UTC
This was fixed in:

4cd096defffc278f13edf9a194f4bc62095a947e

but never backported to RE25.

*** This issue has been marked as a duplicate of issue 9156 ***