Skip to main content

Run LDAP query

Run a raw LDAP filter from any starting point and scope and return the entries as a table.

Command in the Active Directory toolkit · id ooa.active_directory/run_query · 7 inputs (1 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
FilterStringYesLDAP filter.
AttributesListNoAttributes to return; cn, sAMAccountName and mail when empty.
Search base (distinguished name)StringNoWhere to start; the session's base when empty.
ScopeStringNosubtreeHow deep to search below the starting point.
Maximum resultsNumberNo1000Safety limit.
SessionStringNoadSession name.
Return asStringNotabletable: a row per entry; names: a list of their names (the first attribute, else the name in the dn); dns: a list of distinguished names.

Outputs​

OutputTypeWhat it is
tableTableOne row per entry; columns are dn plus the requested attributes.
countNumberNumber of entries.
listListWith return as names or distinguished names: the entries as a plain list.