]> git.ipfire.org Git - thirdparty/krb5.git/commit
Don't fail krb5_cc_select() for no default realm 1234/head
authorIsaac Boukris <iboukris@gmail.com>
Sun, 26 Dec 2021 01:28:41 +0000 (03:28 +0200)
committerGreg Hudson <ghudson@mit.edu>
Sun, 2 Jan 2022 01:29:08 +0000 (20:29 -0500)
commit4b479814747b69ec386d0e092f71678e6e193a75
tree4bc99a3c3cd75ae0ecd6b38c9f3f59210f4b5792
parent7f84f66e1a0c3877dd20fcf705182480cf00de0a
Don't fail krb5_cc_select() for no default realm

If the target server principal is a host-based service without
multiple dotted components and no default realm is configured,
krb5_cc_select() can fail, and therefore gss_init_sec_context().
Continue without filling in the realm in this case.

[ghudson@mit.edu: edited commit message and comment; slightly adjusted
flow control]

ticket: 9042 (new)
src/lib/krb5/ccache/ccselect.c
src/tests/gssapi/t_gssapi.py