1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:rpcclient: make use of trust_pw_change()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
Stefan Metzmacher 2013-09-16 18:33:51 +02:00
parent 16c6e4992f
commit a9281e6570

View File

@ -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;