summaryrefslogtreecommitdiffstats
path: root/source/utils/net_rpc_samsync.c
diff options
context:
space:
mode:
authorJim McDonough <jmcd@samba.org>2005-01-05 16:02:56 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 10:53:46 -0500
commit60c3a638e4e63d009728c2ce7a6264c3c120a9e5 (patch)
tree7cf2aff06ce5f52b5af6fc05e2b9d2d5d2760c86 /source/utils/net_rpc_samsync.c
parent0d8306c621a0fe96cf0fc3230062e7ee398302eb (diff)
downloadsamba-60c3a638e4e63d009728c2ce7a6264c3c120a9e5.tar.gz
samba-60c3a638e4e63d009728c2ce7a6264c3c120a9e5.tar.xz
samba-60c3a638e4e63d009728c2ce7a6264c3c120a9e5.zip
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.
Diffstat (limited to 'source/utils/net_rpc_samsync.c')
-rw-r--r--source/utils/net_rpc_samsync.c3
1 files changed, 3 insertions, 0 deletions
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