summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2001-09-23 05:16:03 +0000
committerAndrew Bartlett <abartlet@samba.org>2001-09-23 05:16:03 +0000
commit67947bf6e31ee9758f8a2186f83031ba21b716f2 (patch)
treefd6ebb0b42f0df2f15f8ddd047947c161c7e9ba2 /source/smbd/reply.c
parente78d0a3615d74cdd023d2d623abc27ac59356ae0 (diff)
downloadsamba-67947bf6e31ee9758f8a2186f83031ba21b716f2.tar.gz
samba-67947bf6e31ee9758f8a2186f83031ba21b716f2.tar.xz
samba-67947bf6e31ee9758f8a2186f83031ba21b716f2.zip
Fix up NT_STATUS return for session setups, Win2k objects to anything other
than NT_STATUS_LOGON_FAILURE. This also brings us (almost) back in line with their implementation. Kill off SMBENCRYPT() macro Kill off 'nt smb support' paramater - tridge okayed this one. Andrew Bartlett
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r--source/smbd/reply.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index e3c7c9b856f..64662a54e2b 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -496,7 +496,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int
fstring native_lanman;
BOOL guest=False;
static BOOL done_sesssetup = False;
- BOOL doencrypt = SMBENCRYPT();
+ BOOL doencrypt = lp_encrypted_passwords();
START_PROFILE(SMBsesssetupX);
*smb_apasswd = 0;
@@ -745,8 +745,8 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,int
guest = True;
} else {
- return ERROR_NT(nt_status);
- }
+ return ERROR_NT(NT_STATUS_LOGON_FAILURE);
+ }
}
if (!strequal(user,lp_guestaccount(-1)) &&