ajAuthenLdap function
Description
The ajAuthenLdap function is used to authenticate users with LDAP / Active Directory.
Syntax
ajAuthenLdap(server_name, domain_name, user_id, password, [run_condition], [run_by_function_point_only])
Argument Name | Description |
---|---|
server_name (required) | Specify the IP address or FQDN of the LDAP server. |
domain_name (required) | Specify the domain of the user. If there is no domain that needs to be specified, please enter an empty string “”. |
user_id (required) | Specify the username from LDAP. |
password (required) | Specify the user's password. |
run_condition (optional) | The function will run when the value is TRUE. Otherwise, it will not run. If you do not specify anything, the default value will always be TRUE. |
run_by_function_point_only (optional) | If it equals FALSE, the function can be executed through ‘Excel Calculation’ (can be either Automatic or Manual, Calculate Now or Calculate Sheet) or Run Function Point. If it equals TRUE, the function can be executed with Run Function Point (AlchemyJ toolbar \ Run Function Point) only. If you do not specify anything, the default value will always be TRUE. |
The function will return:
1) Content type: TRUE, FALSE
2) Method: Within a cell
Example
As you can see from the example above, the authentication is successful and the result returned is TRUE. If the authentication is unsuccessful, it will return a FALSE.
Otherwise, it will return #VALUE! when there is an error in the usage of the function.