UserMgrUserSetCredentials (FUN)

FUNCTION UserMgrUserSetCredentials : RTS_IEC_RESULT

Set or overwrite the credentials of the user

InOut:

Scope

Name

Type

Comment

Return

UserMgrUserSetCredentials

RTS_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

  • ERR_NO_ACCESS_RIGHTS: User not authorized

Input

hUser

RTS_IEC_HANDLE

Handle to authorized user

Inout Const

pszUser

STRING

User name, limited to 59 chars

pCredentials

UserMgrCredentials

Credentials, only password is available so far, password (plain text) is limited to 59 chars