CVE-2022-37966 s4:kdc: Set supported enctypes in KDC entry
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Fri, 24 Dec 2021 03:59:12 +0000 (16:59 +1300)
committerStefan Metzmacher <metze@samba.org>
Tue, 13 Dec 2022 23:48:48 +0000 (00:48 +0100)
commit86834042a187e7ef0c805b4a2fbe4d63b6437794
tree420a74e01ec6107eea5c269fee8c6436a6911d06
parentd09d8f995c9a12a0c96aecdbc9f6dac4f5864890
CVE-2022-37966 s4:kdc: Set supported enctypes in KDC entry

This allows us to return the supported enctypes to the client as
PA-SUPPORTED-ENCTYPES padata.

NOTE: THIS COMMIT WON'T COMPILE/WORK ON ITS OWN!

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit cb382f7cddebabde3dac2b4bdb50d5b864463abf)

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15237
[jsutton@samba.org Adapted to Samba 4.15; removed FAST-supported bit for
 KDC]
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/kdc/db-glue.c
source4/kdc/samba_kdc.h