summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_client/cli_netlogon.c51
-rw-r--r--source3/rpc_client/cli_netlogon.h7
2 files changed, 0 insertions, 58 deletions
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c
index a9f860470d0..2f23d1b8ea8 100644
--- a/source3/rpc_client/cli_netlogon.c
+++ b/source3/rpc_client/cli_netlogon.c
@@ -759,54 +759,3 @@ NTSTATUS rpccli_netlogon_network_logon(struct netlogon_creds_cli_context *creds,
return NT_STATUS_OK;
}
-
-/*********************************************************
- Change the domain password on the PDC.
-
- Just changes the password betwen the two values specified.
-
- Caller must have the cli connected to the netlogon pipe
- already.
-**********************************************************/
-
-NTSTATUS rpccli_netlogon_set_trust_password(struct rpc_pipe_client *cli,
- TALLOC_CTX *mem_ctx,
- const char *account_name,
- const unsigned char orig_trust_passwd_hash[16],
- const char *new_trust_pwd_cleartext,
- const unsigned char new_trust_passwd_hash[16],
- enum netr_SchannelType sec_channel_type)
-{
- NTSTATUS result;
-
- if (cli->netlogon_creds == NULL) {
- uint32_t neg_flags = NETLOGON_NEG_AUTH2_ADS_FLAGS |
- NETLOGON_NEG_SUPPORTS_AES;
- result = rpccli_netlogon_setup_creds(cli,
- cli->desthost, /* server name */
- lp_workgroup(), /* domain */
- lp_netbios_name(), /* client name */
- account_name, /* machine account name */
- orig_trust_passwd_hash,
- sec_channel_type,
- &neg_flags);
- if (!NT_STATUS_IS_OK(result)) {
- DEBUG(3,("rpccli_netlogon_set_trust_password: unable to setup creds (%s)!\n",
- nt_errstr(result)));
- return result;
- }
- }
-
- result = netlogon_creds_cli_ServerPasswordSet(cli->netlogon_creds,
- cli->binding_handle,
- new_trust_pwd_cleartext,
- NULL); /* new_version */
- if (!NT_STATUS_IS_OK(result)) {
- DEBUG(0,("netlogon_creds_cli_ServerPasswordSet failed: %s\n",
- nt_errstr(result)));
- return result;
- }
-
- return NT_STATUS_OK;
-}
-
diff --git a/source3/rpc_client/cli_netlogon.h b/source3/rpc_client/cli_netlogon.h
index d4c66704ec7..8547db6edef 100644
--- a/source3/rpc_client/cli_netlogon.h
+++ b/source3/rpc_client/cli_netlogon.h
@@ -93,12 +93,5 @@ NTSTATUS rpccli_netlogon_network_logon(struct netlogon_creds_cli_context *creds,
uint8_t *authoritative,
uint32_t *flags,
struct netr_SamInfo3 **info3);
-NTSTATUS rpccli_netlogon_set_trust_password(struct rpc_pipe_client *cli,
- TALLOC_CTX *mem_ctx,
- const char *account_name,
- const unsigned char orig_trust_passwd_hash[16],
- const char *new_trust_pwd_cleartext,
- const unsigned char new_trust_passwd_hash[16],
- enum netr_SchannelType sec_channel_type);
#endif /* _RPC_CLIENT_CLI_NETLOGON_H_ */