]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:libads: Only add RC4 if weak crypto is allowed
authorAndreas Schneider <asn@samba.org>
Thu, 3 Sep 2020 09:45:33 +0000 (11:45 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Mon, 7 Sep 2020 08:03:38 +0000 (08:03 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Isaac Boukris <iboukris@samba.org>
source3/libads/kerberos.c

index ad4282c208f18300c146390719519e33b6240d9c..6eb57d85f4e964a157642ca2313202d96d6f2110 100644 (file)
@@ -611,8 +611,9 @@ static char *get_enctypes(TALLOC_CTX *mem_ctx)
 #endif
        }
 
-       if (lp_kerberos_encryption_types() == KERBEROS_ETYPES_ALL ||
-           lp_kerberos_encryption_types() == KERBEROS_ETYPES_LEGACY) {
+       if (lp_weak_crypto() == SAMBA_WEAK_CRYPTO_ALLOWED &&
+           (lp_kerberos_encryption_types() == KERBEROS_ETYPES_ALL ||
+            lp_kerberos_encryption_types() == KERBEROS_ETYPES_LEGACY)) {
                legacy_enctypes = "RC4-HMAC";
        }