From: Günther Deschner Date: Tue, 24 Jun 2008 22:47:41 +0000 (+0200) Subject: netapi: add NetUserChangePassword() to public headers. X-Git-Tag: samba-3.3.0pre1~771 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d06891238d7dddedeb6fe2aca677c765b90c74a;p=thirdparty%2Fsamba.git netapi: add NetUserChangePassword() to public headers. Guenther --- diff --git a/source/lib/netapi/netapi.h b/source/lib/netapi/netapi.h index 9496d77e83a..113a72ca13e 100644 --- a/source/lib/netapi/netapi.h +++ b/source/lib/netapi/netapi.h @@ -509,6 +509,26 @@ NET_API_STATUS NetUserEnum(const char * server_name /* [in] */, uint32_t *total_entries /* [out] [ref] */, uint32_t *resume_handle /* [in,out] [ref] */); +/************************************************************//** + * + * 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