Use fallback realm for GSSAPI ccache selection
authorMatt Rogers <mrogers@redhat.com>
Fri, 10 Feb 2017 17:53:42 +0000 (12:53 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 16 Feb 2017 15:47:33 +0000 (10:47 -0500)
commit234b64bd6139d5b75dadd5abbd5bef5a162e298a
tree81ce0736bfe19380daca30e615050236aac73389
parent17e886457babadaaefd3f51027200123f9bbed3a
Use fallback realm for GSSAPI ccache selection

In krb5_cc_select(), if the server principal has an empty realm, use
krb5_get_fallback_host_realm() and set the server realm to the first
fallback found.  This helps with the selection of a non-default ccache
when there is no [domain_realms] configuration for the server domain.
Modify t_ccselect.py tests to account for fallback behavior.

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