diff options
author | Jim McDonough <jmcd@samba.org> | 2007-06-26 20:09:41 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:23:36 -0500 |
commit | 9c3db7adf3efb7e485ac0a7301f31a1ab6338435 (patch) | |
tree | 43872efb41a9ca0ce4fe74c47bf52d12a258d01c /source3/include | |
parent | 53637791023ec35f669244d7ea24ceaf6cf30d18 (diff) | |
download | samba-9c3db7adf3efb7e485ac0a7301f31a1ab6338435.tar.gz samba-9c3db7adf3efb7e485ac0a7301f31a1ab6338435.tar.bz2 samba-9c3db7adf3efb7e485ac0a7301f31a1ab6338435.zip |
r23616: Fix bugzilla #4719: must change password is not set from usrmgr.exe.
This was only affecting the newer versions of usrmgr.exe, because they
use a user_info_25 struct. The password is getting set separately
inside that code, so the password last set time was getting set from the
password change logic.
We also were not parsing a number of fields (like logon hours) from the
user_info_25. That should also be fixed.
(This used to be commit afabd68b6ae874aceba708dc36808ed007ad496c)
Diffstat (limited to 'source3/include')
-rw-r--r-- | source3/include/rpc_samr.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/source3/include/rpc_samr.h b/source3/include/rpc_samr.h index 2d931e67fc..d34ecdb5fb 100644 --- a/source3/include/rpc_samr.h +++ b/source3/include/rpc_samr.h @@ -262,7 +262,19 @@ typedef struct sam_user_info_25 uint32 acb_info; /* account info (ACB_xxxx bit-mask) */ uint32 fields_present; - uint32 unknown_5[5]; + uint16 logon_divs; /* 0x0000 00a8 which is 168 which is num hrs in a week */ + /* uint8 pad[2] */ + uint32 ptr_logon_hrs; /* pointer to logon hours */ + + /* Was unknown_5. */ + uint16 bad_password_count; + uint16 logon_count; + + uint8 padding1[6]; + + uint8 passmustchange; /* 0x00 must change = 0x01 */ + + uint8 padding2; uint8 pass[532]; @@ -276,6 +288,7 @@ typedef struct sam_user_info_25 UNISTR2 uni_workstations; /* login from workstations unicode string */ UNISTR2 uni_comment; UNISTR2 uni_munged_dial ; /* munged path name and dial-back tel no */ + LOGON_HRS logon_hrs; } SAM_USER_INFO_25; /* SAM_USER_INFO_26 */ |