Add missing patch
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
This commit is contained in:
parent
f6e7b19cc5
commit
e95becb243
28
freeipa-fix-missing-creds.patch
Normal file
28
freeipa-fix-missing-creds.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From 5238651da06547bb004de2434ae7d357422ba735 Mon Sep 17 00:00:00 2001
|
||||
From: Alexander Bokovoy <abokovoy@redhat.com>
|
||||
Date: Fri, 4 Jun 2021 15:35:58 +0300
|
||||
Subject: [PATCH] get_credentials: return ValueError for missing creds
|
||||
|
||||
Related: https://pagure.io/freeipa/issue/8873
|
||||
|
||||
Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
|
||||
---
|
||||
ipalib/krb_utils.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/ipalib/krb_utils.py b/ipalib/krb_utils.py
|
||||
index 1002bbaa6..21078ef3e 100644
|
||||
--- a/ipalib/krb_utils.py
|
||||
+++ b/ipalib/krb_utils.py
|
||||
@@ -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
|
||||
--
|
||||
2.31.1
|
||||
|
Loading…
Reference in New Issue
Block a user