LDAP user synchronization timeout disables all users #4402
Labels
issue/confirmed
Issue has been reviewed and confirmed to be present or accepted to be implemented
topic/authentication
type/bug
[x]
):Description
I've notcied that if the LDAP user sync runs into a timeout all users tied to that authentication source will be disabled.
While I understand the reasoning from a security perspective it might be sensible to at least do one or two retries because this otherwise might bring down the entire system until this is noticed.
The issue making this worse is that in case users are decativated the behaviour is not consistent. Assume the following:
Suggestion
As also in a perfectly working environment there can be a temporary unavailability of the LDAP server that was chosen by Gitea to perform user sync temporary failurs (like Timeout or unable to connect) should not lead to immediate user deactivation but the sync should be retried 2 or 3 times, possibly with a delay of a few minutes
The text was updated successfully, but these errors were encountered: