krn.CheckUserAccount

This job checks whether the specified user can log into the system. If a password is passed, it is checked — an incorrect password can lead to account lockout (same criteria as in enaio® enterprise-manager).

The job returns with an error if the user cannot log into the system.

1. Input Parameters

Name Type Required Description

Flags

INT

Yes

Must be 0.

UserName

STRING

Yes

Login name of the user

[Password]

STRING

No

Encrypted password (optional)

2. Output Parameters

Name Type Dependency Description

Action

INT

Result of login check:
0 = login is possible
2 = user not known
3 = account locked by wrong password, login not possible
4 = wrong password, re-login possible
5 = account already locked, login not possible

PwdExpires

INT

only when Action = 0

Password validity (only when Action=0):
-1 = password does not expire within the validity period
0 = password has expired and must be changed
n = number of days until expiration

3. Return Value

(INT): 0 = Job successful, otherwise error code.