From 8d731274626614a0679ff25f7e939bf34caa9440 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Fri, 30 Jan 2015 16:54:06 +0000 Subject: [PATCH] s3:cli_netlogon: cli_credentials_get_old_nt_hash() in rpccli_setup_netlogon_creds_with_creds() This way we'll fallback to use the previous machine/trust account password if required. Signed-off-by: Stefan Metzmacher Reviewed-by: Guenther Deschner --- source3/rpc_client/cli_netlogon.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c index b08c10fb783..4fd71554ffc 100644 --- a/source3/rpc_client/cli_netlogon.c +++ b/source3/rpc_client/cli_netlogon.c @@ -236,12 +236,15 @@ NTSTATUS rpccli_setup_netlogon_creds_with_creds(struct cli_state *cli, return NT_STATUS_NO_MEMORY; } + previous_nt_hash = cli_credentials_get_old_nt_hash(creds, talloc_tos()); + status = rpccli_setup_netlogon_creds(cli, transport, netlogon_creds, force_reauth, *current_nt_hash, previous_nt_hash); TALLOC_FREE(current_nt_hash); + TALLOC_FREE(previous_nt_hash); if (!NT_STATUS_IS_OK(status)) { return status; } -- 2.11.4.GIT