From cc02d4c5d619077f190dcf27721f5f85d6f824c4 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Thu, 30 Mar 2000 05:41:28 +0000 Subject: hmm, experimenting with last part of SAM_USER_INFO_21 and SAM_USER_INFO_23 it's still not right. --- source/rpc_parse/parse_samr.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'source/rpc_parse/parse_samr.c') diff --git a/source/rpc_parse/parse_samr.c b/source/rpc_parse/parse_samr.c index 32b5ffb3d27..04890a23b7c 100644 --- a/source/rpc_parse/parse_samr.c +++ b/source/rpc_parse/parse_samr.c @@ -5476,7 +5476,7 @@ static BOOL sam_io_user_info23(char *desc, SAM_USER_INFO_23 * usr, prs_align(ps); /* ok, this is only guess-work (as usual) */ - if (usr->unknown_5 != 0x0) + if (usr->unknown_3 != 0x0) { prs_uint32("unknown_6 ", ps, depth, &(usr->unknown_6)); prs_uint32("padding4 ", ps, depth, &(usr->padding4)); @@ -5803,8 +5803,17 @@ BOOL sam_io_user_info21(char *desc, SAM_USER_INFO_21 * usr, usr->hdr_munged_dial.buffer, ps, depth); /* worksations user can log on from */ prs_align(ps); - prs_uint32("unknown_6 ", ps, depth, &(usr->unknown_6)); - prs_uint32("padding4 ", ps, depth, &(usr->padding4)); + /* ok, this is only guess-work (as usual) */ + if (usr->unknown_3 != 0x0) + { + prs_uint32("unknown_6 ", ps, depth, &(usr->unknown_6)); + prs_uint32("padding4 ", ps, depth, &(usr->padding4)); + } + else if (UNMARSHALLING(ps)) + { + usr->unknown_6 = 0; + usr->padding4 = 0; + } if (usr->ptr_logon_hrs) { -- cgit