Syntax
int vas_auth_user_password ( string user, string pmpt, [, int tries] )
Description
The vas_auth_user_password function attempts to authenticate a user to Active Directory using the Authentication Services API. This feature is platform dependent. The feature_enabled() function indicates whether this feature is supported on a particular policy server.
Returns 1 if the user successfully authenticates; otherwise it returns 0 (zero).
Example
if (feature_enabled(FEATURE_VAS) ) {
if (!vas_auth_user_password(user, "AD Password:", 3)) {
reject “Failed to authenticate to AD”;
}
}