ValidateWinUser

This function will validate user credentials against the Windows domain or local system. The user account must not be inactive.

Group:  System

Syntax:  bOK = SYS.ValidateWinUser(sDomain, sUser, gsPassword)

bOK                 (Boolean) returns True if the validation was a success

sDomain           (String) Enter the domain to be searched. If the local PC is used, specify a single period for the domain or enter the PC name.

sUser                (String) Enter the user name to be validated.

gsPassword    (String) Enter the password to be validated. Passwords are case sensitive. Users that do not have a password will not work.

Example:

Dim bOK As Boolean

SYS.ValidateWinUser(".", App.User, gsPass)

'In this example the password was saved in a global string variable when it was used on the login screen.

Supported Versions:   RFgen 4.0 and higher.