You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
1.1 KiB
27 lines
1.1 KiB
From 68a557557ab8a3208fab8a70daf4d970b9fc4787 Mon Sep 17 00:00:00 2001 |
|
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com> |
|
Date: Tue, 30 Mar 2021 14:35:28 +0200 |
|
Subject: [PATCH] Make KCM iteration fallback work with sssd-kcm |
|
|
|
sssd-kcm returns KRB5_CC_IO if the operation code is not known. |
|
|
|
ticket: 8990 |
|
(cherry picked from commit 06afae820a44c1dc96ad88a0b16c3e50bc938b2a) |
|
(cherry picked from commit 2dbca7e14c945d6394e0e05f285a068dcd541295) |
|
--- |
|
src/lib/krb5/ccache/cc_kcm.c | 2 +- |
|
1 file changed, 1 insertion(+), 1 deletion(-) |
|
|
|
diff --git a/src/lib/krb5/ccache/cc_kcm.c b/src/lib/krb5/ccache/cc_kcm.c |
|
index 1f81a2190..46705f1da 100644 |
|
--- a/src/lib/krb5/ccache/cc_kcm.c |
|
+++ b/src/lib/krb5/ccache/cc_kcm.c |
|
@@ -876,7 +876,7 @@ kcm_start_seq_get(krb5_context context, krb5_ccache cache, |
|
ret = kcmreq_get_cred_list(&req, &creds); |
|
if (ret) |
|
goto cleanup; |
|
- } else if (ret == KRB5_FCC_INTERNAL) { |
|
+ } else if (ret == KRB5_FCC_INTERNAL || ret == KRB5_CC_IO) { |
|
/* Fall back to GET_CRED_UUID_LIST. */ |
|
kcmreq_free(&req); |
|
kcmreq_init(&req, KCM_OP_GET_CRED_UUID_LIST, cache);
|
|
|