The following built-in functions implement an interface to the Directory Manager.
This function performs a directory search, returning a dictionary with found records.
The baseDN value should be a string with the search base DN. If this value is "$", the Directory Integration settings are used to compose the base DN for the current Domain.
The filter value should be a null-value, or a string with a search filter, in the RFC2254 format.
The parameters value should be a null-value or a dictionary containing search options:
If the directory search operation fails (no base DN record, insufficient access rights, etc.), this function returns an error code string.