mirror of
https://github.com/samba-team/samba.git
synced 2025-03-30 06:50:24 +03:00
r4538: Fix bugzilla 2198, accounts which have password last set to 0 are getting
no passwords after vampire. Set password last set field to now. (This used to be commit 60c3a638e4e63d009728c2ce7a6264c3c120a9e5)
This commit is contained in:
parent
9bba9c0fee
commit
846b8d4cfd
@ -445,6 +445,9 @@ sam_account_from_delta(SAM_ACCOUNT *account, SAM_ACCOUNT_INFO *delta)
|
||||
stored_time = pdb_get_pass_last_set_time(account);
|
||||
if (stored_time != unix_time)
|
||||
pdb_set_pass_last_set_time(account, unix_time, PDB_CHANGED);
|
||||
} else {
|
||||
/* no last set time, make it now */
|
||||
pdb_set_pass_last_set_time(account, time(NULL), PDB_CHANGED);
|
||||
}
|
||||
|
||||
#if 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user