forked from freeipa-pr-ci2/freeipa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle DatabaseError in RPC-Server connect()
DatabaseError exceptions with 'account inactivated' message are turned into 401 Unauthorized errors. The problem occurs when a user is disabled but has a valid cookie. Other DatabaseErrors are turned into 503 Service Unavailable. They usually occur when LDAP server is not available or broken. Fixes: https://pagure.io/freeipa/issue/8352 Signed-off-by: Christian Heimes <[email protected]> Reviewed-By: Alexander Bokovoy <[email protected]>
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters