]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[CIFS] Fix plaintext authentication
authorSteve French <sfrench@us.ibm.com>
Wed, 27 Aug 2008 21:30:22 +0000 (21:30 +0000)
committerSteve French <sfrench@us.ibm.com>
Wed, 27 Aug 2008 21:30:22 +0000 (21:30 +0000)
commitbcc55c6664a90146149ba0fd93052adc94287b9f
tree7b90cd9ea4bad5625b5912a8430038fac6b398f2
parent87ed1d65fb536a0cd4e84874c0b038f953e448aa
[CIFS] Fix plaintext authentication

The last eight bytes of the password field were not cleared when doing lanman plaintext password authentication. This patch fixes that.

I tested it with Samba by setting password
encryption to no in the server's smb.conf.  Other servers also can be
configured to force plaintext authentication.    Note that plaintexti
authentication requires setting /proc/fs/cifs/SecurityFlags to 0x30030
on the client (enabling both LANMAN and also plaintext password support).
Also note that LANMAN support (and thus plaintext password support) requires
CONFIG_CIFS_WEAK_PW_HASH to be enabled in menuconfig.

CC: Jeff Layton <jlayton@redhat.com>
CC: Stable Kernel <stable@vger.kernel.org>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsencrypt.c