s4:kdc: Add resource SID compression
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Thu, 1 Dec 2022 21:49:20 +0000 (10:49 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 8 Feb 2023 00:03:39 +0000 (00:03 +0000)
commite3fdb2d00152d86558a2ba29b92fd36440055461
tree185f5cf6fa8b9c065116c9a18a71b5b118aff7a8
parent14d94460ca1ef22269373f36ec50df248aca9465
s4:kdc: Add resource SID compression

The domain-local groups that are added to the PAC of a service ticket
are now, if the service doesn't disclaim support for SID compression,
placed into the resource groups structure in PAC_LOGON_INFO.

In a TGS exchange directed to a KDC, rather than to a service, the
resource groups structure is simply copied into the updated PAC without
any processing being done.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
14 files changed:
auth/auth_sam_reply.c
auth/auth_sam_reply.h
librpc/idl/auth.idl
librpc/idl/netlogon.idl
selftest/knownfail_heimdal_kdc
source3/auth/auth_samba4.c
source4/auth/kerberos/kerberos.h
source4/auth/kerberos/kerberos_pac.c
source4/kdc/db-glue.c
source4/kdc/mit_samba.c
source4/kdc/pac-glue.c
source4/kdc/wdc-samba4.c
source4/rpc_server/netlogon/dcerpc_netlogon.c
source4/torture/winbind/winbind.c