From 78c4f72c311fb23ab37ed892fe67b75421736803 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Tue, 11 Jan 2011 13:07:02 +0100 Subject: s3-rpc_client: Added dcerpc_samr_chgpasswd_user. --- source3/rpc_client/cli_samr.h | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'source3/rpc_client/cli_samr.h') diff --git a/source3/rpc_client/cli_samr.h b/source3/rpc_client/cli_samr.h index 404987caa7..aa0e5f9883 100644 --- a/source3/rpc_client/cli_samr.h +++ b/source3/rpc_client/cli_samr.h @@ -29,6 +29,30 @@ /* The following definitions come from rpc_client/cli_samr.c */ +/** + * @brief Change the password of a user. + * + * @param[in] h The dcerpc binding hanlde to use. + * + * @param[in] mem_ctx The memory context to use. + * + * @param[in] user_handle The password of the user to chang the handle + * + * @param[in] newpassword The new password to set. + * + * @param[in] oldpassword The old password for verification + * + * @param[out] presult A pointer for the NDR NTSTATUS error code. + * + * @return A corresponding NTSTATUS error code for the connection. + */ +NTSTATUS dcerpc_samr_chgpasswd_user(struct dcerpc_binding_handle *h, + TALLOC_CTX *mem_ctx, + struct policy_handle *user_handle, + const char *newpassword, + const char *oldpassword, + NTSTATUS *presult); + NTSTATUS rpccli_samr_chgpasswd_user(struct rpc_pipe_client *cli, TALLOC_CTX *mem_ctx, struct policy_handle *user_handle, -- cgit