diff options
author | Michael Simacek <msimacek@redhat.com> | 2015-08-31 14:04:33 +0200 |
---|---|---|
committer | Jan Cholasta <jcholast@redhat.com> | 2015-09-22 13:29:55 +0200 |
commit | bdccebbcdb9eb7da476762743121c1e73f95fa10 (patch) | |
tree | 38108d6426dfc4dee960b9dba055dc49a1ae38f1 /install/tools/ipa-adtrust-install | |
parent | cfeea91828ad47e1d321947d04f5f6de0e3d1c8c (diff) | |
download | freeipa-bdccebbcdb9eb7da476762743121c1e73f95fa10.tar.gz freeipa-bdccebbcdb9eb7da476762743121c1e73f95fa10.tar.xz freeipa-bdccebbcdb9eb7da476762743121c1e73f95fa10.zip |
Rewrap errors in get_principal to CCacheError
Causes nicer error message when kerberos credentials are not available.
https://fedorahosted.org/freeipa/ticket/5272
Reviewed-By: David Kupka <dkupka@redhat.com>
Reviewed-By: Tomas Babej <tbabej@redhat.com>
Diffstat (limited to 'install/tools/ipa-adtrust-install')
-rwxr-xr-x | install/tools/ipa-adtrust-install | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/install/tools/ipa-adtrust-install b/install/tools/ipa-adtrust-install index 5bece0d8b..1f41cc437 100755 --- a/install/tools/ipa-adtrust-install +++ b/install/tools/ipa-adtrust-install @@ -310,7 +310,7 @@ def main(): try: principal = krb_utils.get_principal() - except gssapi.exceptions.GSSError as e: + except errors.CCacheError as e: sys.exit("Must have Kerberos credentials to setup AD trusts on server: %s" % e.message) try: |