From: Jim McDonough Date: Wed, 5 Jan 2005 16:02:56 +0000 (+0000) Subject: r4538: Fix bugzilla 2198, accounts which have password last set to 0 are getting X-Git-Tag: samba-misc-tags/initial-v3-0-unstable~5448 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=60c3a638e4e63d009728c2ce7a6264c3c120a9e5;p=thirdparty%2Fsamba.git 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. --- diff --git a/source/utils/net_rpc_samsync.c b/source/utils/net_rpc_samsync.c index fccdc5f5ba5..3ef2388bbc2 100644 --- a/source/utils/net_rpc_samsync.c +++ b/source/utils/net_rpc_samsync.c @@ -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