EssSetPassword

Description

EssSetPassword() sets a user's password, erasing the existing password.

Syntax

ESS_FUNC_M  EssSetPassword (hCtx, UserName, Password);
ESS_HCTX_ThCtx
ESS_STR_TUserName
ESS_STR_TPassword

Parameters

hCtxEssbase API context handle.
UserNameUser name.
PasswordNew password for user.

Return Value

None.

Notes

Access

This function requires the caller to have Create/Delete User privilege (ESS_PRIV_USERCREATE) for the logged in server, unless they are setting their own password.

Example

ESS_FUNC_M 
ESS_SetPassword (ESS_HCTX_T  hCtx)
{
   ESS_FUNC_M     sts = ESS_STS_NOERR;
   ESS_STR_T     UserName;
   ESS_STR_T     Password;
   
   UserName = "Jim Smith";
   Password = "newpwd";
   sts = EssSetPassword (hCtx,UserName, Password);
   return (sts);
}

See Also

EssListUsers()
EssSetUser()