From: Stefan Metzmacher Date: Mon, 5 Dec 2022 20:36:23 +0000 (+0100) Subject: CVE-2022-37966 testparm: warn about 'kerberos encryption types = legacy' X-Git-Tag: samba-4.16.8~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=12e4e94853fd5b9a614dc0a6fb62acbe93f83be1;p=thirdparty%2Fsamba.git CVE-2022-37966 testparm: warn about 'kerberos encryption types = legacy' BUG: https://bugzilla.samba.org/show_bug.cgi?id=15237 Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett Reviewed-by: Ralph Boehme (cherry picked from commit c0c25cc0217b082c12330a8c47869c8428a20d0c) --- diff --git a/source3/utils/testparm.c b/source3/utils/testparm.c index 02ef3de83ae..c22d40b4b1f 100644 --- a/source3/utils/testparm.c +++ b/source3/utils/testparm.c @@ -680,6 +680,14 @@ static int do_global_checks(void) "options\n\n"); } + if (lp_kerberos_encryption_types() == KERBEROS_ETYPES_LEGACY) { + fprintf(stderr, + "WARNING: You have configured " + "'kerberos encryption types = legacy'. " + "Your server is vulernable to " + "CVE-2022-37966\n\n"); + } + return ret; }