Skip to content

feat(auth): report SERVER_DOWN in LDAP errors - #106

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

rezib merged 2 commits into
mainfrom
pr/feat-100

Conversation

@rezib

@rezib rezib commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

When ldap.SERVER_DOWN is translated into LDAPAuthenticationError, the original error is appended to the message. Callers that log only the exception text, such as slurm-quota, were left with LDAP server … is unreachable and no cause, including a TLS certificate verification failure.

STARTTLS, bind, user DN search, login(), and users() now raise LDAP server {uri} is unreachable: {err}. The existing from err chain is kept.

fix #100

rezib added 2 commits October 29, 2026 09:29
Callers that log only the exception message lose the original
ldap.SERVER_DOWN text, such as a TLS certificate verification failure.
Append that error to LDAPAuthenticationError.

fix #100
@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 eb4cd7f into main Oct 29, 2026
24 checks passed
@rezib
rezib deleted the pr/feat-100 branch October 29, 2026 08:44
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: report SERVER_DOWN error in LDAPAuthenticationError description

1 participant