$base and $filter may be ommitted. The one from config will then be
used. $base is either a DN-string or an Horde_Ldap_Entry object in which
case its DN will be used.
$params may contain:
- scope: The scope which will be used for searching, defaults to 'sub':
- base: Just one entry
- sub: The whole tree
- one: Immediately below $base
- sizelimit: Limit the number of entries returned
(default: 0 = unlimited)
- timelimit: Limit the time spent for searching (default: 0 = unlimited)
- attrsonly: If true, the search will only return the attribute names
- attributes: Array of attribute names, which the entry should contain.
It is good practice to limit this to just the ones you
need.
You cannot override server side limitations to sizelimit and timelimit:
You can always only lower a given limit.
public search ( string | Horde_Ldap_Entry $base = null, string | Horde_Ldap_Filter $filter = null, array $params = [] ) : Horde_Ldap_Search | ||
$base | string | Horde_Ldap_Entry | LDAP searchbase. |
$filter | string | Horde_Ldap_Filter | LDAP search filter. |
$params | array | Array of options. |
return | Horde_Ldap_Search | The search result. |