]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2016-2111: docs-xml/smbdotconf: default "raw NTLMv2 auth" to "no"
authorStefan Metzmacher <metze@samba.org>
Tue, 15 Mar 2016 20:59:42 +0000 (21:59 +0100)
committerStefan Metzmacher <metze@samba.org>
Mon, 28 Mar 2016 22:42:20 +0000 (00:42 +0200)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=11749

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
docs-xml/smbdotconf/security/rawntlmv2auth.xml
lib/param/loadparm.c
source3/param/loadparm.c

index ef262977a0c789326352caee85dc7c1611ad7a07..30e7280bc5dd18e21da83833463973da95d431f3 100644 (file)
     and <command moreinfo="none">ntlm auth</command> are all disabled,
     then only clients with SPNEGO support will be permitted.
     That means NTLMv2 is only supported within NTLMSSP.</para>
-
-    <para>Note that the default will change to "no" with Samba 4.5.</para>
 </description>
 
-<value type="default">yes</value>
-<value type="example">no</value>
+<related>lanman auth</related>
+<related>ntlm auth</related>
+<value type="default">no</value>
 </samba:parameter>
index 21410ac9e1cdf00b1787daa689d75e6358863feb..ce745c49fbb108888b84d7091c691a21321fd82c 100644 (file)
@@ -2509,7 +2509,7 @@ struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx)
        lpcfg_do_global_parameter(lp_ctx, "ClientNTLMv2Auth", "True");
        lpcfg_do_global_parameter(lp_ctx, "LanmanAuth", "False");
        lpcfg_do_global_parameter(lp_ctx, "NTLMAuth", "True");
-       lpcfg_do_global_parameter(lp_ctx, "RawNTLMv2Auth", "True");
+       lpcfg_do_global_parameter(lp_ctx, "RawNTLMv2Auth", "False");
        lpcfg_do_global_parameter(lp_ctx, "client use spnego principal", "False");
 
        lpcfg_do_global_parameter(lp_ctx, "UnixExtensions", "True");
index 5819a0efa23aa58e2fc070339b59c3d40ab39e01..32adb43c3ef56e8a268d1ad75d1215ab57a45d4b 100644 (file)
@@ -660,7 +660,7 @@ static void init_globals(struct loadparm_context *lp_ctx, bool reinit_globals)
        Globals.client_plaintext_auth = false;  /* Do NOT use a plaintext password even if is requested by the server */
        Globals.lanman_auth = false;    /* Do NOT use the LanMan hash, even if it is supplied */
        Globals.ntlm_auth = true;       /* Do use NTLMv1 if it is supplied by the client (otherwise NTLMv2) */
-       Globals.raw_ntlmv2_auth = true; /* Allow NTLMv2 without NTLMSSP */
+       Globals.raw_ntlmv2_auth = false; /* Reject NTLMv2 without NTLMSSP */
        Globals.client_ntlmv2_auth = true; /* Client should always use use NTLMv2, as we can't tell that the server supports it, but most modern servers do */
        /* Note, that we will also use NTLM2 session security (which is different), if it is available */