]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4-auth: Disable LM authenticaton in the AD DC despite "lanman auth = yes"
authorAndrew Bartlett <abartlet@samba.org>
Thu, 10 Feb 2022 05:15:58 +0000 (18:15 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Thu, 17 Mar 2022 01:57:38 +0000 (01:57 +0000)
LM authentication is very weak and a very bad idea, so has been deprecated since
Samba 4.11.

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source4/auth/ntlm/auth_sam.c

index cf0656ae0da15dc2417b8de76481cf2d985dcfc1..0625c4f1268e0dac425627223f00e1f27ee0ea2a 100644 (file)
@@ -90,8 +90,8 @@ static NTSTATUS authsam_password_ok(struct auth4_context *auth_context,
                
        case AUTH_PASSWORD_RESPONSE:
                status = ntlm_password_check(mem_ctx, 
-                                            lpcfg_lanman_auth(auth_context->lp_ctx),
-                                                lpcfg_ntlm_auth(auth_context->lp_ctx),
+                                            false,
+                                            lpcfg_ntlm_auth(auth_context->lp_ctx),
                                             user_info->logon_parameters, 
                                             &auth_context->challenge.data, 
                                             &user_info->password.response.lanman,