Skip to content

feat(auth): control LDAP initialize trace level - #107

Merged
rezib merged 2 commits into
mainfrom
pr/feat-101
Oct 29, 2026
Merged

rezib merged 2 commits into
mainfrom
pr/feat-101

Conversation

@rezib

@rezib rezib commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

python-ldap can trace LDAP library calls when ldap.initialize() is given a non-zero trace_level.

LDAPAuthentifier opens that connection itself, so consumers had no way to enable the trace. It now accepts trace_level and forwards the value to ldap.initialize().

Pass trace_level to LDAPAuthentifier, or omit it and set RFL_AUTH_LDAP_TRACE_LEVEL. An explicit argument overrides the environment variable. An invalid environment value is ignored with a warning.

fix #101

rezib added 2 commits October 29, 2026 10:09
python-ldap can trace LDAP library calls when ldap.initialize() is
given a non-zero trace_level.

LDAPAuthentifier opens that connection itself, so consumers had no way
to enable the trace. It now accepts trace_level and forwards the value
to ldap.initialize().

Pass trace_level to LDAPAuthentifier, or omit it and set
RFL_AUTH_LDAP_TRACE_LEVEL. An explicit argument overrides the
environment variable. An invalid environment value is ignored with a
warning.

fix #101
@rezib rezib added this to the v1.10.0 milestone Oct 29, 2026
@rezib rezib self-assigned this Oct 29, 2026
@rezib
rezib merged commit d467b67 into main Oct 29, 2026
24 checks passed
@rezib
rezib deleted the pr/feat-101 branch October 29, 2026 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

auth: add possibility to control LDAP trace_level

1 participant