summaryrefslogtreecommitdiff
path: root/source3/auth/auth.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-08-20 21:11:55 +0000
committerAndrew Tridgell <tridge@samba.org>2001-08-20 21:11:55 +0000
commitf9ce2028104fcb1694bc3e8f8d4b7ac3ec8c972e (patch)
tree85c4e307b3997284ec4aca1a79ebfb2ada61bf94 /source3/auth/auth.c
parent4294f6f2c80cb81fdf872bee87e171640e3601fe (diff)
downloadsamba-f9ce2028104fcb1694bc3e8f8d4b7ac3ec8c972e.tar.gz
samba-f9ce2028104fcb1694bc3e8f8d4b7ac3ec8c972e.tar.bz2
samba-f9ce2028104fcb1694bc3e8f8d4b7ac3ec8c972e.zip
two fixes for NT clients -> share level Samba server
(This used to be commit a25911d58c752350b62b205cfb0d6fc5b1c90cef)
Diffstat (limited to 'source3/auth/auth.c')
-rw-r--r--source3/auth/auth.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/auth/auth.c b/source3/auth/auth.c
index bbcf34e8ca..cb0d54bf9b 100644
--- a/source3/auth/auth.c
+++ b/source3/auth/auth.c
@@ -157,7 +157,8 @@ uint32 pass_check_smb_with_chal(char *user, char *domain, uchar chal[8],
memcpy(user_info.chal, chal, 8);
- if (lm_pwd_len >= 24 || (lp_encrypted_passwords() && (lm_pwd_len == 0) && lp_null_passwords())) {
+ if ((lm_pwd_len >= 24 || nt_pwd_len >= 24) ||
+ (lp_encrypted_passwords() && (lm_pwd_len == 0) && lp_null_passwords())) {
/* if 24 bytes long assume it is an encrypted password */
user_info.lm_resp.buffer = (uint8 *)lm_pwd;