kdc: do not include PAC for anonymous AS requests

The PAC will typically contain information that may reveal the identity of a
principal. Do not include it for anonymous requests, at least until such time
as the PAC plugin API supports indicating that the request was anonymous.
This commit is contained in:
Luke Howard
2019-05-02 16:57:51 +10:00
committed by Jeffrey Altman
parent 2f013b0d48
commit 7a7eb9de2f

View File

@@ -2239,7 +2239,7 @@ _kdc_as_rep(kdc_request_t r,
}
/* Add the PAC */
if (send_pac_p(context, req)) {
if (send_pac_p(context, req) && !_kdc_is_anon_request(b)) {
generate_pac(r, skey);
}