krb5: check KDC supports anonymous if requested
Verify the KDC recognized the request-anonymous flag by validating the returned client principal name.
This commit is contained in:

committed by
Jeffrey Altman

parent
5c70e5015e
commit
014e318d6b
@@ -489,7 +489,7 @@ krb5_get_in_cred(krb5_context context,
|
||||
{
|
||||
unsigned flags = EXTRACT_TICKET_TIMESYNC;
|
||||
if (opts.request_anonymous)
|
||||
flags |= EXTRACT_TICKET_ALLOW_SERVER_MISMATCH;
|
||||
flags |= EXTRACT_TICKET_ALLOW_SERVER_MISMATCH | EXTRACT_TICKET_MATCH_ANON;
|
||||
|
||||
ret = _krb5_extract_ticket(context,
|
||||
&rep,
|
||||
|
Reference in New Issue
Block a user