summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-06-25 00:47:41 +0200
committerGünther Deschner <gd@samba.org>2008-06-25 09:55:12 +0200
commit8a01bd8f7364bdad6d758236a415359e84bffde4 (patch)
tree38abe9c7b7aab50539b22adad7b018de32ffe475 /source3/lib
parent6fa8ac6ab4e99f16c5e47e78343266d77cc646c0 (diff)
downloadsamba-8a01bd8f7364bdad6d758236a415359e84bffde4.tar.gz
samba-8a01bd8f7364bdad6d758236a415359e84bffde4.tar.bz2
samba-8a01bd8f7364bdad6d758236a415359e84bffde4.zip
netapi: add NetUserChangePassword() to public headers.
Guenther (This used to be commit 5d06891238d7dddedeb6fe2aca677c765b90c74a)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/netapi/netapi.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/source3/lib/netapi/netapi.h b/source3/lib/netapi/netapi.h
index 9496d77e83..113a72ca13 100644
--- a/source3/lib/netapi/netapi.h
+++ b/source3/lib/netapi/netapi.h
@@ -511,6 +511,26 @@ NET_API_STATUS NetUserEnum(const char * server_name /* [in] */,
/************************************************************//**
*
+ * NetUserChangePassword
+ *
+ * @brief Change the password for a user on a given server or in a given domain
+ *
+ * @param[in] domain_name The server or domain name to connect to
+ * @param[in] user_name The user account to change the password for
+ * @param[in] old_password The user account's old password
+ * @param[in] old_password The user account's new password
+ * @return NET_API_STATUS
+ *
+ * example user/user_chgpwd.c
+ ***************************************************************/
+
+NET_API_STATUS NetUserChangePassword(const char * domain_name /* [in] */,
+ const char * user_name /* [in] */,
+ const char * old_password /* [in] */,
+ const char * new_password /* [in] */);
+
+/************************************************************//**
+ *
* NetQueryDisplayInformation
*
* @brief Enumerate accounts on a server