mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-02 20:30:26 -06:00
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>
This commit is contained in:
1 parent
cfeea91828
commit
bdccebbcdb
4 files changed
+16
-8
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user