summaryrefslogtreecommitdiff
path: root/source3/rpcclient/cmd_netlogon.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-09-16 18:33:51 +0200
committerStefan Metzmacher <metze@samba.org>2014-01-07 12:47:12 +0100
commita9281e6570fcc5ff5abe3149615bed7029d1cf71 (patch)
tree89b1931e56d87640014718dd55c70f0ae7fc6ee4 /source3/rpcclient/cmd_netlogon.c
parent16c6e4992fa882207eeaff0a1c4d9fe217be48b7 (diff)
downloadsamba-a9281e6570fcc5ff5abe3149615bed7029d1cf71.tar.gz
s3:rpcclient: make use of trust_pw_change()
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpcclient/cmd_netlogon.c')
-rw-r--r--source3/rpcclient/cmd_netlogon.c10
1 files 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;