UserMgrRelogin (FUN)

FUNCTION UserMgrRelogin : RTS_IEC_RESULT

Re-logs user in to the runtime system using an active user management. Using this API it is possible to change the user identity of the given handle. If the given credentials are not valid, no change will be done.

InOut:

Scope

Name

Type

Comment

Return

UserMgrRelogin

RTS_IEC_RESULT

Error code
  • ERR_OK: User/password combination is valid

  • ERR_NOTINITIALIZED: The user management is not initialized or it is not loaded yet

  • ERR_RELOGIN: hUser known, but not logged in

  • ERR_FAILED: Password is wrong.

  • ERR_USER_MISMATCH: User name does not match

  • ERR_INVALID_HANDLE: hUser is invalid or unknown

Input

hUser

RTS_IEC_HANDLE

Handle to the user

pszUser

REFERENCE TO STRING

Name of the user, limited to 59 chars

pszPassword

REFERENCE TO STRING

Password (plain text), limited to 59 chars