summaryrefslogtreecommitdiff
path: root/source3/rpc_client/cli_samr.h
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-01-12 08:46:28 +0100
committerAndreas Schneider <asn@samba.org>2011-01-21 14:34:17 +0100
commit3de564b9b6559690578ca649f8acf52d82bc592e (patch)
treeb0791c7bd2fe7835a830ea49393d772febb40d2b /source3/rpc_client/cli_samr.h
parent78c4f72c311fb23ab37ed892fe67b75421736803 (diff)
downloadsamba-3de564b9b6559690578ca649f8acf52d82bc592e.tar.gz
samba-3de564b9b6559690578ca649f8acf52d82bc592e.tar.bz2
samba-3de564b9b6559690578ca649f8acf52d82bc592e.zip
s3-rpc_client: Added dcerpc_samr_chgpasswd_user2.
Diffstat (limited to 'source3/rpc_client/cli_samr.h')
-rw-r--r--source3/rpc_client/cli_samr.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/source3/rpc_client/cli_samr.h b/source3/rpc_client/cli_samr.h
index aa0e5f9883..d73171209b 100644
--- a/source3/rpc_client/cli_samr.h
+++ b/source3/rpc_client/cli_samr.h
@@ -58,6 +58,34 @@ NTSTATUS rpccli_samr_chgpasswd_user(struct rpc_pipe_client *cli,
struct policy_handle *user_handle,
const char *newpassword,
const char *oldpassword);
+
+/**
+ * @brief Change the password of a user based on username.
+ *
+ * @param[in] h The dcerpc binding hanlde to use.
+ *
+ * @param[in] mem_ctx The memory context to use.
+ *
+ * @param[in] srv_name_slash The server name with leading slashes.
+ *
+ * @param[in] username The name of ther user.
+ *
+ * @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_user2(struct dcerpc_binding_handle *h,
+ TALLOC_CTX *mem_ctx,
+ const char *srv_name_slash,
+ const char *username,
+ const char *newpassword,
+ const char *oldpassword,
+ NTSTATUS *presult);
+
NTSTATUS rpccli_samr_chgpasswd_user2(struct rpc_pipe_client *cli,
TALLOC_CTX *mem_ctx,
const char *username,