Description: Executes an Active Directory subtree query through the ADODB ADsDSOObject provider.
Calling convention: CIP_ExecuteADRequest(Base: String; Filter: String; Attributes: String): VarArray
Parameters:
Base: ADSI search root.
Filter: LDAP search filter.
Attributes: comma-separated attribute names.
Returns: Two-dimensional Variant array indexed by field then record. Missing or NULL arguments return an empty Variant array.
Availability: Default Windows environment with Active Directory access and the ADODB provider.
Example:
Rows := CIP_ExecuteADRequest("LDAP://DC=example,DC=local"; "(objectClass=user)"; "name,mail");