]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix GSSAPI krb5 cred ccache import
authorTom Yu <tlyu@mit.edu>
Thu, 17 Oct 2013 22:20:37 +0000 (18:20 -0400)
committerTom Yu <tlyu@mit.edu>
Thu, 17 Oct 2013 22:20:37 +0000 (18:20 -0400)
commitcf003fc2ed7e345de3103d76a3801fb9f61fdc5f
treeaf4f9d756c4d5a8e524fa605b64e680299492f01
parenta924075483b887ed2f386b2f16cc0091638246c6
Fix GSSAPI krb5 cred ccache import

json_to_ccache was incorrectly indexing the JSON array when restoring
a memory ccache.  Fix it.

Add test coverage for a multi-cred ccache by exporting/importing the
synthesized S4U2Proxy delegated cred in t_s4u2proxy_krb5.c; move
export_import_cred from t_export_cred.c to common.c to facilitate
this.  Make a note in t_export_cred.py that this case is covered in
t_s4u.py.

(cherry picked from commit 48dd01f29b893a958a64dcf6eb0b734e8463425b)

ticket: 7723 (new)
version_fixed: 1.11.4
status: resolved
src/lib/gssapi/krb5/import_cred.c
src/tests/gssapi/common.c
src/tests/gssapi/common.h
src/tests/gssapi/t_export_cred.c
src/tests/gssapi/t_export_cred.py
src/tests/gssapi/t_s4u2proxy_krb5.c