Stefan Metzmacher cfda35d982 fs/cifs: correctly to anonymous authentication via NTLMSSP
See [MS-NLMP] 3.2.5.1.2 Server Receives an AUTHENTICATE_MESSAGE from the Client:

   ...
   Set NullSession to FALSE
   If (AUTHENTICATE_MESSAGE.UserNameLen == 0 AND
      AUTHENTICATE_MESSAGE.NtChallengeResponse.Length == 0 AND
      (AUTHENTICATE_MESSAGE.LmChallengeResponse == Z(1)
       OR
       AUTHENTICATE_MESSAGE.LmChallengeResponse.Length == 0))
       -- Special case: client requested anonymous authentication
       Set NullSession to TRUE
   ...

Only server which map unknown users to guest will allow
access using a non-null NTChallengeResponse.

For Samba it's the "map to guest = bad user" option.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11913

CC: Stable <stable@vger.kernel.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Steve French <smfrench@gmail.com>
2016-05-17 14:09:33 -05:00
..
2015-05-20 13:12:51 -05:00
2016-05-02 19:49:31 -04:00
2016-05-17 14:09:33 -05:00
2013-11-08 05:57:46 +09:00
2015-12-07 23:11:33 -05:00
2015-06-27 20:23:32 -07:00
2014-12-14 14:55:57 -06:00
2016-05-17 14:09:33 -05:00
2007-06-05 18:30:44 +00:00
2015-11-03 10:10:36 -06:00
2012-07-24 10:25:13 -05:00
2016-01-27 20:35:53 +08:00
2013-09-08 14:54:24 -05:00