summaryrefslogtreecommitdiffstats
path: root/source/param
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-09-06 19:23:24 +0000
committerGerald Carter <jerry@samba.org>2003-09-06 19:23:24 +0000
commitfe585d49cc3df0d71314ff43d3271d276d7d4503 (patch)
tree282b6a819587b7c9ee2a0bd6eaeab96a1aa59db1 /source/param
parent89f6adf830187d020bf4b35d1a4b2b48c7a075d0 (diff)
downloadsamba-fe585d49cc3df0d71314ff43d3271d276d7d4503.tar.gz
samba-fe585d49cc3df0d71314ff43d3271d276d7d4503.tar.xz
samba-fe585d49cc3df0d71314ff43d3271d276d7d4503.zip
address bug #359. Andrew B's patch for implementing client
portion of NTLMv2 key exchange. Also revert the default for 'client ntlmv2 auth' to no. This caused no ends of grief in different cases. And based on abartlet's mail.... > All I care about at this point is that we use NTLMv2 > in our client code when connecting to a server that > supports it. There is *no* way to tell this. The server can't tell us, because it doesn't know what it's DC supports. The DC can't tell us, because it doesn't know what the trusted DC supports. One DC might be Win2k, and the PDC could be an older NT4.
Diffstat (limited to 'source/param')
-rw-r--r--source/param/loadparm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index c801c4c522f..41b32cef109 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -1427,7 +1427,8 @@ static void init_globals(void)
Globals.bClientPlaintextAuth = True; /* Do use a plaintext password if is requested by the server */
Globals.bLanmanAuth = True; /* Do use the LanMan hash if it is available */
Globals.bNTLMAuth = True; /* Do use NTLMv1 if it is available (otherwise NTLMv2) */
- Globals.bClientNTLMv2Auth = True; /* Client should use NTLMv2 if available. */
+ 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.map_to_guest = 0; /* By Default, "Never" */
Globals.min_passwd_length = MINPASSWDLENGTH; /* By Default, 5. */