kinit: Prefer the default ccache when user_realm
commit02db43a1aede9cbafc7908333abf83680567aeca
authorNicolas Williams <nico@twosigma.com>
Thu, 12 Mar 2020 22:57:16 +0000 (12 17:57 -0500)
committerNicolas Williams <nico@twosigma.com>
Fri, 13 Mar 2020 02:02:09 +0000 (12 21:02 -0500)
tree514081fe1fae3c87fefdeca3281ebde0aa812e31
parent7dae771eefb29b57d5d4a4d507d5a847258e0179
kinit: Prefer the default ccache when user_realm

If using the new --cache-default-for option, use the real default if the
principal is the best principal for the user.

A principal is the best principal for a user when the principal has just
one component, the component is the user's username, and the realm is
the configured user_realm.
kuser/kinit.c