]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix KCM retrieval support for sssd 1186/head
authorGreg Hudson <ghudson@mit.edu>
Tue, 11 May 2021 18:04:07 +0000 (14:04 -0400)
committerGreg Hudson <ghudson@mit.edu>
Fri, 14 May 2021 02:55:42 +0000 (22:55 -0400)
commitda103e36e13f3c846bcddbe38dd518a21e5260a0
treea4587114322a1a86f8ac7cbda6c2481d72866471
parentddb189ff95350afc0e3e063016a0f0dd5213dc4c
Fix KCM retrieval support for sssd

Commit 795ebba8c039be172ab93cd41105c73ffdba0fdb added a retrieval
handler using KCM_OP_RETRIEVE, falling back on the same error codes as
the previous KCM_OP_GET_CRED_LIST support.  But sssd (as of 2.4)
returns KRB5_CC_NOSUPP instead of KRB5_CC_IO if it recognizes an
opcode but does not implement it.  Add a helper function to recognize
all known unsupported-opcode error codes, and use it in kcm_retrieve()
and kcm_start_seq_get().

ticket: 8997
src/lib/krb5/ccache/cc_kcm.c