diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-09-06 13:54:30 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2014-01-07 12:47:15 +0100 |
commit | 6d457ad9c156cf86d99e58dea21dba170defad1b (patch) | |
tree | 4acfceb7472d6b31ca536f692a3e6473e606a57f /source3/rpc_client | |
parent | 660150b12a637da7f9ebb820e687f27ac22fb93a (diff) | |
download | samba-6d457ad9c156cf86d99e58dea21dba170defad1b.tar.gz samba-6d457ad9c156cf86d99e58dea21dba170defad1b.tar.xz samba-6d457ad9c156cf86d99e58dea21dba170defad1b.zip |
s3:rpc_client: remove unused rpccli_netlogon_set_trust_password()
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_netlogon.c | 51 | ||||
-rw-r--r-- | source3/rpc_client/cli_netlogon.h | 7 |
2 files changed, 0 insertions, 58 deletions
diff --git a/source3/rpc_client/cli_netlogon.c b/source3/rpc_client/cli_netlogon.c index a9f860470d..2f23d1b8ea 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 d4c66704ec..8547db6ede 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_ */ |