summaryrefslogtreecommitdiff
path: root/auth/credentials/credentials_secrets.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2014-09-22 16:43:18 -0700
committerAndrew Bartlett <abartlet@samba.org>2014-09-27 01:35:37 +0200
commit4281c11e3a6702ad91c34e8722251897340dfdd2 (patch)
treee6ff888d2ab54544a5d6ec6f5db6c6ef90034d40 /auth/credentials/credentials_secrets.c
parent3fc5b2269ba8d1d24052c3d4a9794af1b1dbfce4 (diff)
downloadsamba-4281c11e3a6702ad91c34e8722251897340dfdd2.tar.gz
credentials: Allow the secrets.tdb password to be newer than the secrets.ldb password
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org> Signed-off-by: Andrew Bartlett <abartlet@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'auth/credentials/credentials_secrets.c')
-rw-r--r--auth/credentials/credentials_secrets.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/auth/credentials/credentials_secrets.c b/auth/credentials/credentials_secrets.c
index 9fad104bdb8..625ce202838 100644
--- a/auth/credentials/credentials_secrets.c
+++ b/auth/credentials/credentials_secrets.c
@@ -322,6 +322,8 @@ _PUBLIC_ NTSTATUS cli_credentials_set_machine_account(struct cli_credentials *cr
cli_credentials_set_old_password(cred, secrets_tdb_old_password, CRED_SPECIFIED);
cli_credentials_set_domain(cred, domain, CRED_SPECIFIED);
cli_credentials_set_username(cred, machine_account, CRED_SPECIFIED);
+ cli_credentials_set_password_last_changed_time(cred, secrets_tdb_lct);
+ status = NT_STATUS_OK;
} else if (!NT_STATUS_IS_OK(status)) {
if (db_ctx) {
error_string = talloc_asprintf(cred,