Blame SOURCES/Make-KCM-iteration-fallback-work-with-sssd-kcm.patch

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