UserMgrUserSetCredentials (FUN)ΒΆ
FUNCTION UserMgrUserSetCredentials : RTS_IEC_RESULT
Set or overwrite the credentials of the user
- InOut:
Scope
Name
Type
Comment
Return
UserMgrUserSetCredentialsRTS_IEC_RESULT- Error code
ERR_OK: Credentials could be set
ERR_PARAMETER: Invalid user name or credentials
ERR_DUPLICATE: The new and the old credentials are the same (only when the password policy is disabled)
ERR_NO_ACCESS_RIGHTS: User not authorized
ERR_PASSWORD_POLICY: Password does not fulfill the password policy requirements or the new and the old credentials are the same
Input
hUserRTS_IEC_HANDLEHandle to authorized user
Inout Const
pszUserSTRINGUser name, limited to 59 chars
pCredentialsUserMgrCredentialsCredentials, only password is available so far, password (plain text) is limited to 59 chars