Calling convention: CIP_LDAPSearch("LDAPRequest": String): VariantArray
Description: Executes an LDAP query through the Windows ADODB Active Directory provider and copies the result into a two-dimensional Variant array.
Parameters:
LDAPRequest = Complete ADODB LDAP command containing the root DN, filter, field list, and search scope. An empty request raises an exception.
Returns: Two-dimensional VariantArray indexed as [column, row]. If the query returns no rows, an empty two-dimensional array is returned.
Availability: Windows environment with the ADODB Active Directory provider and access to the requested directory service.
Example:
Values := CIP_LDAPSearch("<GC://localhost:389/dc=myserver,dc=local>;(&(objectClass=group));distinguishedName,Name;subtree");
CIP_ShowMatrix(Values);