diff options
author | Volker Lendecke <vlendec@samba.org> | 2002-10-19 07:50:48 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2002-10-19 07:50:48 +0000 |
commit | 0c35d7863293090925ee862285d844936dc38a94 (patch) | |
tree | 25f4269e627dccef40e1a6a79d885921c9fd74f4 /source3/rpc_parse | |
parent | 955003ebce31773388592e041a2399cb0004a4b3 (diff) | |
download | samba-0c35d7863293090925ee862285d844936dc38a94.tar.gz samba-0c35d7863293090925ee862285d844936dc38a94.tar.bz2 samba-0c35d7863293090925ee862285d844936dc38a94.zip |
This fixes some bugs for NT4 usrmgr.exe
Volker
(This used to be commit 32d6bcf3acefc77873a7241cc0c7e26241a65301)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r-- | source3/rpc_parse/parse_samr.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_samr.c b/source3/rpc_parse/parse_samr.c index 6b96b79047..08ed28e80a 100644 --- a/source3/rpc_parse/parse_samr.c +++ b/source3/rpc_parse/parse_samr.c @@ -6061,7 +6061,17 @@ NTSTATUS init_sam_user_info21A(SAM_USER_INFO_21 *usr, SAM_ACCOUNT *pw, DOM_SID * usr->user_rid = user_rid; usr->group_rid = group_rid; usr->acb_info = pdb_get_acct_ctrl(pw); - usr->unknown_3 = pdb_get_unknown_3(pw); + + /* + Look at a user on a real NT4 PDC with usrmgr, press + 'ok'. Then you will see that unknown_3 is set to + 0x08f827fa. Look at the user immediately after that again, + and you will see that 0x00fffff is returned. This solves + the problem that you get access denied after having looked + at the user. + -- Volker + */ + usr->unknown_3 = 0x00ffffff; usr->logon_divs = pdb_get_logon_divs(pw); usr->ptr_logon_hrs = pdb_get_hours(pw) ? 1 : 0; |