]> git.ipfire.org Git - thirdparty/krb5.git/commit
Do not default to host/ for client keytabs
authorBen Kaduk <kaduk@mit.edu>
Mon, 19 May 2014 20:23:45 +0000 (16:23 -0400)
committerBen Kaduk <kaduk@mit.edu>
Thu, 22 May 2014 21:33:14 +0000 (17:33 -0400)
commit6c4bd36bd000c8f5ab1b8dacd5d4101831fe576e
tree1730beb6aab8d3d4d83aad651b880a16411e2c01
parent6e8b2fba84df2ef74ce071330b4c3f843f4b7541
Do not default to host/ for client keytabs

When the normal (acceptor) keytab is being used to obtain initial
credentials, it is reasonable to use the default hostbased service
principal (host/fully.qualified.localhost.domain) when no client
principal is given.  This behavior is not very reasonable when
the default client keytab is being used, as host/ credentials are
not normally client credentials.

Make kinit -i match up with the GSS-API behavior when client keytabs
are in use, using the name of the first entry in the keytab when
no name is explicitly given.

ticket: 7892
src/clients/kinit/kinit.c