mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Do not show unexpected error in ipa-ldap-updater
Prevent showing of unfriendly "Unexpected error" message, when providing incorrect DM password to ipa-ldap-updater. https://fedorahosted.org/freeipa/ticket/3825
This commit is contained in:
committed by
Petr Viktorin
parent
5157fd450f
commit
15cc9740c0
@@ -673,6 +673,8 @@ def handle_error(error, log_file_name=None):
|
|||||||
if isinstance(error, socket.error):
|
if isinstance(error, socket.error):
|
||||||
return error, 1
|
return error, 1
|
||||||
|
|
||||||
|
if isinstance(error, errors.ACIError):
|
||||||
|
return error.message, 1
|
||||||
if isinstance(error, ldap.INVALID_CREDENTIALS):
|
if isinstance(error, ldap.INVALID_CREDENTIALS):
|
||||||
return "Invalid password", 1
|
return "Invalid password", 1
|
||||||
if isinstance(error, ldap.INSUFFICIENT_ACCESS):
|
if isinstance(error, ldap.INSUFFICIENT_ACCESS):
|
||||||
|
|||||||
Reference in New Issue
Block a user