-
-
Notifications
You must be signed in to change notification settings - Fork 983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
broken ldap cached session after "failed to execute flow" #9972
Comments
@d-schiffner @BeryJu could it be that this comparison
Although i do not speak go, i can see that there is a change of behavior which i can imagine to cause the caching of an assumably (by interpreting the behavior without understanding) broken session. Are you able to see the point? |
While this was happening for a dovecot service user and therefore affecting all users wanting to authenticate their Mailclient, it now happened for a specific human user again. On the mailer server:
On authentik server:
Followed by
|
No, that does not fix the cached authentication failure after the flow execution failure. |
Naa, happened again. This was stupid anyway, because if the "failed to execute flow" event is triggered, the direct binder returns |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
And finally that one mayflower@7e11c4f fixed it together with the previous commits. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
A note upfront, the instance is deployed using the https://github.com/nix-community/authentik-nix module. If you think the issue is related to the installation method in use feel free to close it, although it seems to me the cause is an oversight in refactoring. But then again, what do i know,
Describe the bug
Suddenly authentication via ldap provider fails on client with
Invalid credentials
. The failure is reproducible.In authentik ldap logs at the time of the first client authentication failure, is this error
"failed to submit challenge 502 Bad Gateway"
and event"failed to execute flow"
, followed by timespaced recurring events"authenticated from session"
.Changing the bind method of the ldap provider to direct bind, authenticating, and changing back to cached bind fixes the failure.
To Reproduce
Don't know how to reproduce the bind failure "failed to execute flow". See logs.
Expected behavior
The ldap cached bind should not cache broken sessions, i guess.
Logs
From now on, the client fails to authenticate, despite time-spaced recurring lines like
Version and Deployment (please complete the following information):
Additional context
"failed to execute flow"
authentik/internal/outpost/ldap/bind/direct/bind.go
Line 47 in 60c8837
Supposedly caching the broken session
authentik/internal/outpost/ldap/bind/memory/memory.go
Line 62 in 60c8837
The text was updated successfully, but these errors were encountered: