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:
parent
16c6e4992f
commit
a9281e6570
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user