summaryrefslogtreecommitdiffstats
path: root/source3/utils
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2013-09-16 18:34:48 +0200
committerStefan Metzmacher <metze@samba.org>2014-01-07 12:47:12 +0100
commitcfd139347c21f4f4ddd16026c2c8c221feabd6c5 (patch)
tree92966fcc690b8f392f10cd9a817c316a8d85dc55 /source3/utils
parenta9281e6570fcc5ff5abe3149615bed7029d1cf71 (diff)
downloadsamba-cfd139347c21f4f4ddd16026c2c8c221feabd6c5.tar.gz
samba-cfd139347c21f4f4ddd16026c2c8c221feabd6c5.tar.xz
samba-cfd139347c21f4f4ddd16026c2c8c221feabd6c5.zip
s3:net_rpc: 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/utils')
-rw-r--r--source3/utils/net_rpc.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/source3/utils/net_rpc.c b/source3/utils/net_rpc.c
index 26c7e159ed..2a1a0bcef5 100644
--- a/source3/utils/net_rpc.c
+++ b/source3/utils/net_rpc.c
@@ -279,7 +279,11 @@ static NTSTATUS rpc_changetrustpw_internals(struct net_context *c,
{
NTSTATUS status;
- status = trust_pw_find_change_and_store_it(pipe_hnd, mem_ctx, c->opt_target_workgroup);
+ status = trust_pw_change(c->netlogon_creds,
+ c->msg_ctx,
+ pipe_hnd->binding_handle,
+ c->opt_target_workgroup,
+ true); /* force */
if (!NT_STATUS_IS_OK(status)) {
d_fprintf(stderr, _("Failed to change machine account password: %s\n"),
nt_errstr(status));