4D v16.3LDAP Search |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
LDAP Search
LDAP Search
The LDAP Search command searches in the target LDAP server for the first occurrence matching the criteria defined. This command must be executed within a connection to an LDAP server opened with LDAP LOGIN; otherwise a 1003 error is returned. In dnRootEntry, pass the Distinguished Name of the LDAP server root entry; the search will start at this entry. In filter, pass the LDAP search filter to execute. The filter string must be compliant with rfc2225. You can pass an empty string "" in order not to filter the search; the "*" is supported to search substrings. In scope, pass one of the following constants from the "LDAP" theme:
Note: Keep in mind that LDAP attribute names are case-sensitive. For more information on LDAP attributes, you can refer to this page that lists all available attributes for the MS Active directory. By default, the command returns attributes as a collection if multiple results are found, or as a variable if a single result is found. The optional attributesAsArray parameter allows you to "force" returned attribute(s) to be formatted as a collection or as a variable for each attribute defined:
You want to get the phone number of the user "smith" in the company directory: ARRAY TEXT($_tabAttributes;0) We want to get an array of all entries found for the "memberOf" attribute: C_OBJECT($entry)
See also
|
PROPERTIES
Product: 4D
HISTORY
Created: 4D v15 ARTICLE USAGE
4D Language Reference ( 4D v16) |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||