summaryrefslogtreecommitdiff
path: root/source3
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
commit846b8d4cfdee815cd22d7e00b7f120668f9758a9 (patch)
tree5910dbdebd0135ee9b55d88c52ca707ae606ba7d /source3
parent9bba9c0fee3f4a128f26f01da68404c12f10451f (diff)
downloadsamba-846b8d4cfdee815cd22d7e00b7f120668f9758a9.tar.gz
samba-846b8d4cfdee815cd22d7e00b7f120668f9758a9.tar.bz2
samba-846b8d4cfdee815cd22d7e00b7f120668f9758a9.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. (This used to be commit 60c3a638e4e63d009728c2ce7a6264c3c120a9e5)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_rpc_samsync.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/utils/net_rpc_samsync.c b/source3/utils/net_rpc_samsync.c
index fccdc5f5ba..3ef2388bbc 100644
--- a/source3/utils/net_rpc_samsync.c
+++ b/source3/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