kdc: honor PAC_ATTRIBUTES in presented TGT

PACs are included when issuing TGTs, if there is no PAC_ATTRIBUTES buffer
(legacy behavior) or if the attributes buffer indicates the AS client requested
one.
This commit is contained in:
Luke Howard
2021-12-22 17:13:13 +11:00
parent b4f3617964
commit f18c9e06a8
5 changed files with 66 additions and 24 deletions

View File

@@ -848,7 +848,8 @@ _kdc_fast_check_armor_pac(astgs_request_t r)
armor_client, r->armor_server,
r->armor_server, r->armor_server,
&r->armor_key->key, &r->armor_key->key,
&r->armor_ticket->ticket, &ad_kdc_issued, &mspac, NULL, NULL);
&r->armor_ticket->ticket, &ad_kdc_issued, &mspac,
NULL, NULL, NULL);
if (ret) {
const char *msg = krb5_get_error_message(r->context, ret);