summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-13 19:15:48 +0000
committerJeremy Allison <jra@samba.org>2001-03-13 19:15:48 +0000
commit63107eceb9d679ddc9bf2c66bd18c7958332a8f9 (patch)
tree45ab0816ea8a78e3d137a9a1395423ddff66a5f3 /source3
parent381e8299dcc5200712811dc33b2325a81a96aa56 (diff)
downloadsamba-63107eceb9d679ddc9bf2c66bd18c7958332a8f9.tar.gz
samba-63107eceb9d679ddc9bf2c66bd18c7958332a8f9.tar.bz2
samba-63107eceb9d679ddc9bf2c66bd18c7958332a8f9.zip
We were mismarshalling a netlogon reply for bad password to W2K.
Jeremy. (This used to be commit 017a6a9868eb5237a715a0d7bf4784863f40a2f4)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_parse/parse_net.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/rpc_parse/parse_net.c b/source3/rpc_parse/parse_net.c
index f1ff965df2..fbbc09182e 100644
--- a/source3/rpc_parse/parse_net.c
+++ b/source3/rpc_parse/parse_net.c
@@ -1337,10 +1337,15 @@ BOOL net_io_r_sam_logon(char *desc, NET_R_SAM_LOGON *r_l, prs_struct *ps, int de
if(!prs_align(ps))
return False;
+#if 1 /* W2k always needs this - even for bad passwd. JRA */
+ if(!net_io_user_info3("", r_l->user, ps, depth, r_l->switch_value))
+ return False;
+#else
if (r_l->switch_value != 0) {
if(!net_io_user_info3("", r_l->user, ps, depth, r_l->switch_value))
return False;
}
+#endif
if(!prs_uint32("auth_resp ", ps, depth, &r_l->auth_resp)) /* 1 - Authoritative response; 0 - Non-Auth? */
return False;