From a9281e6570fcc5ff5abe3149615bed7029d1cf71 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Mon, 16 Sep 2013 18:33:51 +0200 Subject: s3:rpcclient: make use of trust_pw_change() Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- source3/rpcclient/cmd_netlogon.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c index 59e1e4e37a8..000d65c7fa4 100644 --- a/source3/rpcclient/cmd_netlogon.c +++ b/source3/rpcclient/cmd_netlogon.c @@ -829,11 +829,11 @@ static NTSTATUS cmd_netlogon_change_trust_pw(struct rpc_pipe_client *cli, return NT_STATUS_OK; } - /* Perform the sam logon */ - - result = trust_pw_find_change_and_store_it(cli, mem_ctx, - lp_workgroup()); - + result = trust_pw_change(rpcclient_netlogon_creds, + rpcclient_msg_ctx, + cli->binding_handle, + lp_workgroup(), + true); /* force */ if (!NT_STATUS_IS_OK(result)) goto done; -- cgit