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
@@ -2257,6 +2257,8 @@ krb5_init_creds_step(krb5_context context,
|
||||
}
|
||||
if (ctx->ic_flags & KRB5_INIT_CREDS_NO_C_CANON_CHECK)
|
||||
eflags |= EXTRACT_TICKET_ALLOW_CNAME_MISMATCH;
|
||||
if (ctx->flags.request_anonymous)
|
||||
eflags |= EXTRACT_TICKET_MATCH_ANON;
|
||||
|
||||
ret = process_pa_data_to_key(context, ctx, &ctx->cred,
|
||||
&ctx->as_req, &rep.kdc_rep,
|
||||
|
Reference in New Issue
Block a user