57b2bb
From b96983de501f185a06e8b3d2909ef71033bd9e48 Mon Sep 17 00:00:00 2001
57b2bb
From: =?UTF-8?q?Pavel=20B=C5=99ezina?= <pbrezina@redhat.com>
57b2bb
Date: Tue, 30 Mar 2021 14:35:28 +0200
57b2bb
Subject: [PATCH] Make KCM iteration fallback work with sssd-kcm
57b2bb
57b2bb
sssd-kcm returns KRB5_CC_IO if the operation code is not known.
57b2bb
57b2bb
ticket: 8990
57b2bb
(cherry picked from commit 06afae820a44c1dc96ad88a0b16c3e50bc938b2a)
57b2bb
(cherry picked from commit 2dbca7e14c945d6394e0e05f285a068dcd541295)
57b2bb
(cherry picked from commit f7702c5b11bdd186d03fed32568c9a252d049d44)
57b2bb
---
57b2bb
 src/lib/krb5/ccache/cc_kcm.c | 2 +-
57b2bb
 1 file changed, 1 insertion(+), 1 deletion(-)
57b2bb
57b2bb
diff --git a/src/lib/krb5/ccache/cc_kcm.c b/src/lib/krb5/ccache/cc_kcm.c
57b2bb
index 4141140c3..dae622feb 100644
57b2bb
--- a/src/lib/krb5/ccache/cc_kcm.c
57b2bb
+++ b/src/lib/krb5/ccache/cc_kcm.c
57b2bb
@@ -876,7 +876,7 @@ kcm_start_seq_get(krb5_context context, krb5_ccache cache,
57b2bb
         ret = kcmreq_get_cred_list(&req, &creds);
57b2bb
         if (ret)
57b2bb
             goto cleanup;
57b2bb
-    } else if (ret == KRB5_FCC_INTERNAL) {
57b2bb
+    } else if (ret == KRB5_FCC_INTERNAL || ret == KRB5_CC_IO) {
57b2bb
         /* Fall back to GET_CRED_UUID_LIST. */
57b2bb
         kcmreq_free(&req;;
57b2bb
         kcmreq_init(&req, KCM_OP_GET_CRED_UUID_LIST, cache);