heimdal:kdc: Always generate a PAC for S4U2Self
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 23 Nov 2021 04:30:50 +0000 (17:30 +1300)
committerJule Anger <janger@samba.org>
Sun, 24 Jul 2022 09:42:01 +0000 (11:42 +0200)
commit8f97f78dd8023d88d76fc7de063661d94ebe5400
tree71800244a36271558657f3d66934f315afca9b32
parentd3436300745c41226d7ed146f269c929133f8f49
heimdal:kdc: Always generate a PAC for S4U2Self

If we decided not to put a PAC into the ticket, mspac would be NULL
here, and the resulting ticket would not contain a PAC. This could
happen if there was a request to omit the PAC or the service did not
require authorization data. Ensure that we always generate a PAC.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 1f4f3018c5001b289b91959a72d00575c8fc0ac1)
selftest/knownfail_heimdal_kdc
source4/heimdal/kdc/krb5tgs.c