s3-client Use NTLMv2 by default in the Samba client
authorAndrew Bartlett <abartlet@samba.org>
Sat, 4 Dec 2010 03:57:46 +0000 (14:57 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 14 Dec 2010 05:51:32 +0000 (16:51 +1100)
This matches the improved security measures of Windows Vista.

Andrew Bartlett
(cherry picked from commit 635fbf2b5498df5698e240728add95f8ff8cda0f)

source3/param/loadparm.c

index 72c07053861637d494cc265005720ee0312c63e2..ced8223833724537e5537835ee80c8f32b46130e 100644 (file)
@@ -5263,8 +5263,8 @@ static void init_globals(bool reinit_globals)
        Globals.bClientPlaintextAuth = False;   /* Do NOT use a plaintext password even if is requested by the server */
        Globals.bLanmanAuth = False;    /* Do NOT use the LanMan hash, even if it is supplied */
        Globals.bNTLMAuth = True;       /* Do use NTLMv1 if it is supplied by the client (otherwise NTLMv2) */
-       Globals.bClientNTLMv2Auth = False; /* Client should not use NTLMv2, as we can't tell that the server supports it. */
-       /* Note, that we will use NTLM2 session security (which is different), if it is available */
+       Globals.bClientNTLMv2Auth = 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 */
 
        Globals.map_to_guest = 0;       /* By Default, "Never" */
        Globals.oplock_break_wait_time = 0;     /* By Default, 0 msecs. */