summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2017-05-22 15:36:29 +0200
committerStefan Metzmacher <metze@samba.org>2017-06-27 16:57:45 +0200
commit1421abfc733247a6b71eefd819dfeae7151a6d78 (patch)
treed481db69a918dd172a89ffbd2a823bc82ce9c335 /source3/rpcclient
parentbfe35abc1fb15e70a99fa74d064051a1ad541ed0 (diff)
downloadsamba-1421abfc733247a6b71eefd819dfeae7151a6d78.tar.gz
s3:trusts_util: pass dcname to trust_pw_change()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12782 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_netlogon.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/rpcclient/cmd_netlogon.c b/source3/rpcclient/cmd_netlogon.c
index 29d3096ecd2..4488ec2e0d9 100644
--- a/source3/rpcclient/cmd_netlogon.c
+++ b/source3/rpcclient/cmd_netlogon.c
@@ -835,6 +835,7 @@ static NTSTATUS cmd_netlogon_change_trust_pw(struct rpc_pipe_client *cli,
const char **argv)
{
NTSTATUS result = NT_STATUS_UNSUCCESSFUL;
+ const char *dcname = cli->desthost;
/* Check arguments */
@@ -847,6 +848,7 @@ static NTSTATUS cmd_netlogon_change_trust_pw(struct rpc_pipe_client *cli,
rpcclient_msg_ctx,
cli->binding_handle,
lp_workgroup(),
+ dcname,
true); /* force */
if (!NT_STATUS_IS_OK(result))
goto done;