diff options
author | Steve French <sfrench@us.ibm.com> | 2006-06-02 22:57:13 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2006-06-02 22:57:13 +0000 |
commit | bdc4bf6e8ac8cc29c61c2f0dc61d9776ef9a8ed4 (patch) | |
tree | 60e8cd01fa1a5a8c5bc00c920db629232191ccf1 /fs/cifs/cifssmb.c | |
parent | 43411d699e8cf3293674da558d31a02e0012aa9d (diff) | |
download | linux-3.10-bdc4bf6e8ac8cc29c61c2f0dc61d9776ef9a8ed4.tar.gz linux-3.10-bdc4bf6e8ac8cc29c61c2f0dc61d9776ef9a8ed4.tar.bz2 linux-3.10-bdc4bf6e8ac8cc29c61c2f0dc61d9776ef9a8ed4.zip |
[CIFS] Support for older servers which require plaintext passwords
disabled by default, but can be enabled via proc for servers which
require such support. Also includes support for setting security
flags for cifs. See fs/cifs/README
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index b8c236be4d8..77cca380946 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -492,6 +492,13 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses) server->secMode = pSMBr->SecurityMode; if((server->secMode & SECMODE_USER) == 0) cFYI(1,("share mode security")); + + if((server->secMode & SECMODE_PW_ENCRYPT) == 0) +#ifdef CONFIG_CIFS_WEAK_PW_HASH + if ((extended_security & CIFSSEC_MAY_PLNTXT) == 0) +#endif /* CIFS_WEAK_PW_HASH */ + cERROR(1,("Server requests plain text password" + " but client support disabled")); if(extended_security & CIFSSEC_MUST_NTLMV2) server->secType = NTLMv2; |