]> 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>
Tue, 13 Dec 2022 23:48:48 +0000 (00:48 +0100)
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 bda8f9e1bfba37e25fd7beb94a3d7826b1b7fae1..b8dd48a9198b272ea20bb1331ca0bab0a99e954a 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;
 }