diff options
author | Stefan Metzmacher <metze@samba.org> | 2015-01-30 16:54:06 +0000 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2015-03-12 17:13:42 +0100 |
commit | 8d731274626614a0679ff25f7e939bf34caa9440 (patch) | |
tree | 60201a1ac1997fcabbda5c6515b7c56041f280f5 /source3/rpc_client | |
parent | 33fcfb37c476fc836836c344165abc1cba79130e (diff) | |
download | samba-8d731274626614a0679ff25f7e939bf34caa9440.tar.gz |
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 <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_netlogon.c | 3 |
1 files changed, 3 insertions, 0 deletions
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; } |