diff options
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 b8c236be4d85..77cca3809467 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -492,6 +492,13 @@ CIFSSMBNegotiate(unsigned int xid, struct cifsSesInfo *ses) | |||
492 | server->secMode = pSMBr->SecurityMode; | 492 | server->secMode = pSMBr->SecurityMode; |
493 | if((server->secMode & SECMODE_USER) == 0) | 493 | if((server->secMode & SECMODE_USER) == 0) |
494 | cFYI(1,("share mode security")); | 494 | cFYI(1,("share mode security")); |
495 | |||
496 | if((server->secMode & SECMODE_PW_ENCRYPT) == 0) | ||
497 | #ifdef CONFIG_CIFS_WEAK_PW_HASH | ||
498 | if ((extended_security & CIFSSEC_MAY_PLNTXT) == 0) | ||
499 | #endif /* CIFS_WEAK_PW_HASH */ | ||
500 | cERROR(1,("Server requests plain text password" | ||
501 | " but client support disabled")); | ||
495 | 502 | ||
496 | if(extended_security & CIFSSEC_MUST_NTLMV2) | 503 | if(extended_security & CIFSSEC_MUST_NTLMV2) |
497 | server->secType = NTLMv2; | 504 | server->secType = NTLMv2; |