]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Make KCM iteration fallback work with sssd-kcm 1177/head
authorPavel Březina <pbrezina@redhat.com>
Tue, 30 Mar 2021 12:35:28 +0000 (14:35 +0200)
committerGreg Hudson <ghudson@mit.edu>
Wed, 31 Mar 2021 06:33:47 +0000 (02:33 -0400)
sssd-kcm returns KRB5_CC_IO if the operation code is not known.

ticket: 8990

src/lib/krb5/ccache/cc_kcm.c

index 1f81a2190bddad0c7c67537a1b6cffe488a54e13..46705f1da0eefed96be4d94d0d65b53cd06290a1 100644 (file)
@@ -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);