s3:rpc_client: remove unused rpccli_netlogon_set_trust_password()
authorStefan Metzmacher <metze@samba.org>
Fri, 6 Sep 2013 11:54:30 +0000 (13:54 +0200)
committerStefan Metzmacher <metze@samba.org>
Tue, 7 Jan 2014 11:47:15 +0000 (12:47 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/rpc_client/cli_netlogon.c
source3/rpc_client/cli_netlogon.h

index a9f860470d0b36bd3fe2234b3332e6beb7980fa6..2f23d1b8ea847770a1dec6dc2882dc8654ac1d43 100644 (file)
@@ -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;
-}
-
index d4c66704ec74d4a1a8e3399b60b89af537c7019e..8547db6edefcd95948f659c9480586e028ddf03c 100644 (file)
@@ -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_ */