Configuration and connecting | Fetching entries |
Net_LDAP | |
PEAR Manual | |
After connecting to the server, you can use Net_LDAP's search() method to search the directory. The method takes three parameters:
$base is the base search DN. If kept null, the default base DN configured when connecting is used.
$filter is the query filter that determines which results are returned. It is either a string (experts use only) or better a Net_LDAP_Filter-object. Net_LDAP_Filter automatically deals with LDAP-Filter escaping issues.
$params is an array of configuration options for the current query.
Name | Description | Default |
scope |
The scope used for searching:
|
sub |
sizelimit | Number of entries returned at maximum | 0 (no limit) |
timelimit | Seconds to spent for searching | 0 (no limit) |
attrsonly | If true, only attribute names are returned | false |
attributes | Array of attribute names, which the entry should contain. It is good practice to limit this to just the ones you need. | array() (all attributes) |
Making a search query
|
Configuration and connecting | Fetching entries |
Net_LDAP | |
PEAR Manual | |