Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 

Ldap Object

 

The Ldap object exposes methods for invoking LDAP queries from scripts.

Ldap Methods

Ldap Methods

Ldap.Search()

Ldap.Search()

Purpose

The Ldap.Search() method is used to invoke an LDAP query defined in a [Search/name] section of the ldapauth.aut file.

Syntax

Ldap.Search(SearchSection)

Parameters

Table 143: Ldap.Search() Parameters

Parameter

Description

SearchSection

Specifies the name of a [Search/name] section of the ldapauth.aut file.

Returns

Table 144: Ldap.Search() Return Parameters

Parameter

Description

Ldap.FOUND

The search found a matching LDAP entry.

Ldap.NOTFOUND

The search did not find a matching LDAP entry.

Ldap.FAILED

The search encountered an unexpected failure.

Ldap.NOSUCHSEARCH

The specified section was not found in ldapauth.aut.

Ldap.PASSWORDFAILED

The search found the username, but the password is incorrect.

Example

Given this query definition:

Use this JavaScript command to invoke the query: