mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
get_credentials: return ValueError for missing creds
Related: https://pagure.io/freeipa/issue/8873 Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
be929b7470
commit
33327b2e21
@ -153,7 +153,7 @@ def get_credentials(name=None, ccache_name=None):
|
||||
return gssapi.Credentials(usage='initiate', name=name, store=store)
|
||||
except gssapi.exceptions.GSSError as e:
|
||||
if e.min_code in ( # pylint: disable=no-member
|
||||
KRB5_FCC_NOFILE, GSSPROXY_KRB5_FCC_NOFILE,
|
||||
KRB5_FCC_NOFILE, GSSPROXY_KRB5_FCC_NOFILE, KRB5_CC_NOTFOUND,
|
||||
):
|
||||
raise ValueError('"%s", ccache="%s"' % (e, ccache_name))
|
||||
raise
|
||||
|
Loading…
Reference in New Issue
Block a user