Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fixes #947 #1506

Merged
merged 1 commit into from

3 participants

@ismell

When upgrading to samba 3.6.x they changed the default for NTLMv2 auth
from false to true. This causes xbmc to fail to connec to OpenSolaris
based distros like Nexenta or IllumOS which use the native in kernel
CIFS server. This patch resets the default back to false.

#947

Raul E Rangel Fixes #947
When upgrading to samba 3.6.x they changed the default for NTLMv2 auth
from false to true. This causes xbmc to fail to connec to OpenSolaris
based distros like Nexenta or IllumOS which use the native in kernel
CIFS server. This patch resets the default back to false.
26f9677
@chewitt
Collaborator

this can be corrected by placing "client ntlmv2 auth = no" in the [global] section of a local samba.conf file, we should not be patching samba defaults when only a tiny handful of users are affected

@sraue
Owner

@ismell can you please test with the solution in samba.conf?

@ismell

I tested that solution before I submitted the patch. It didn't work. It was acting as if xbmc was not reading the smb.conf. That's why I decided to patch samba directly.

Raul

@sraue sraue merged commit 0954de0 into from
@ismell ismell deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 25, 2012
  1. Fixes #947

    Raul E Rangel authored
    When upgrading to samba 3.6.x they changed the default for NTLMv2 auth
    from false to true. This causes xbmc to fail to connec to OpenSolaris
    based distros like Nexenta or IllumOS which use the native in kernel
    CIFS server. This patch resets the default back to false.
This page is out of date. Refresh to see the latest.
Showing with 11 additions and 0 deletions.
  1. +11 −0 packages/network/samba/patches/samba-3.6.8-400-reset_ntlmv2.patch
View
11 packages/network/samba/patches/samba-3.6.8-400-reset_ntlmv2.patch
@@ -0,0 +1,11 @@
+--- samba-3.6.8/source3/param/loadparm.c 2012-09-14 02:12:09.000000000 -0600
++++ samba-3.6.8-b/source3/param/loadparm.c 2012-11-25 15:53:07.543125017 -0700
+@@ -5336,7 +5336,7 @@
+ 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 = True; /* Client should always use use NTLMv2, as we can't tell that the server supports it, but most modern servers do */
++ Globals.bClientNTLMv2Auth = False; /* 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" */
Something went wrong with that request. Please try again.