From 15cc9740c0ae7d4715df97a1b9ec0166d47c30c2 Mon Sep 17 00:00:00 2001 From: Ana Krivokapic Date: Tue, 3 Sep 2013 12:42:48 +0200 Subject: 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 --- ipaserver/install/installutils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ipaserver') diff --git a/ipaserver/install/installutils.py b/ipaserver/install/installutils.py index 268279dc9..67c3fa9be 100644 --- a/ipaserver/install/installutils.py +++ b/ipaserver/install/installutils.py @@ -673,6 +673,8 @@ def handle_error(error, log_file_name=None): if isinstance(error, socket.error): return error, 1 + if isinstance(error, errors.ACIError): + return error.message, 1 if isinstance(error, ldap.INVALID_CREDENTIALS): return "Invalid password", 1 if isinstance(error, ldap.INSUFFICIENT_ACCESS): -- cgit