mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +03:00
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>
This commit is contained in:
parent
3fc5b2269b
commit
4281c11e3a
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user