Ldap - setSearchScope
Ldap - setSearchScope
Description :
This command sets the search scope of an existing LDAP query. This command returns a handle to the updated LDAP query object.
Return type : DBKey
Command Input :
Variable Name | Variable Type | Description | ||
---|---|---|---|---|
queryName | String | Name of the LDAP query. | ||
searchScope | String | Allowed values: [base | onelevel | subtree]. |
Example
The following example modifies the attribute used for determining the search scope of a given LDAP query. Specifically, it sets the search scope of Administrators query to subtree scope.
Script
Ldap setSearchScope Administrators subtree
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*