]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2022-37966 testparm: warn about 'kerberos encryption types = legacy'
authorStefan Metzmacher <metze@samba.org>
Mon, 5 Dec 2022 20:36:23 +0000 (21:36 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 14 Dec 2022 10:28:16 +0000 (10:28 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15237

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
(cherry picked from commit c0c25cc0217b082c12330a8c47869c8428a20d0c)

source3/utils/testparm.c

index 02ef3de83ae51cda1dd1543d8dc1304f30e2b0cb..c22d40b4b1f922020fc9b026e665c8bad252e235 100644 (file)
@@ -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;
 }