r4538: Fix bugzilla 2198, accounts which have password last set to 0 are getting
authorJim McDonough <jmcd@samba.org>
Wed, 5 Jan 2005 16:02:56 +0000 (16:02 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 15:53:46 +0000 (10:53 -0500)
no passwords after vampire.  Set password last set field to now.
(This used to be commit 60c3a638e4e63d009728c2ce7a6264c3c120a9e5)

source3/utils/net_rpc_samsync.c

index fccdc5f5ba5c76f809e76925859543a4f41ad2c0..3ef2388bbc2e51d1efd73cf1c12561ee8423e812 100644 (file)
@@ -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