mirror of
https://github.com/samba-team/samba.git
synced 2025-11-26 04:23:49 +03:00
r24771: Use infolevel 25 to set the machine account's password (just like winxp).
This correctly updates pwdLastSet field on win2k3 server. rafal
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
b83626676c
commit
dd6d44c166
@@ -5930,6 +5930,25 @@ void init_sam_user_info23A(SAM_USER_INFO_23 * usr, NTTIME * logon_time, /* all z
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*************************************************************************
|
||||
init_samr_user_info25P
|
||||
fields_present = ACCT_NT_PWD_SET | ACCT_LM_PWD_SET | ACCT_FLAGS
|
||||
*************************************************************************/
|
||||
|
||||
void init_sam_user_info25P(SAM_USER_INFO_25 * usr,
|
||||
uint32 fields_present, uint32 acb_info,
|
||||
char newpass[532])
|
||||
{
|
||||
usr->fields_present = fields_present;
|
||||
ZERO_STRUCT(usr->padding1);
|
||||
ZERO_STRUCT(usr->padding2);
|
||||
|
||||
usr->acb_info = acb_info;
|
||||
memcpy(usr->pass, newpass, sizeof(usr->pass));
|
||||
}
|
||||
|
||||
|
||||
/*******************************************************************
|
||||
reads or writes a structure.
|
||||
********************************************************************/
|
||||
|
||||
Reference in New Issue
Block a user