PHP » GoLang |
login |
register |
about
|
ldap_search(PHP 4, PHP 5, PHP 7) ldap_search — Search LDAP tree Description
resource ldap_search
( resource
$link_identifier
, string $base_dn
, string $filter
[, array $attributes
[, int $attrsonly
[, int $sizelimit
[, int $timelimit
[, int $deref
[, array $serverctrls
]]]]]] )
Performs the search for a specified filter on the directory with the scope
of
From 4.0.5 on it's also possible to do parallel searches. To do this
you use an array of link identifiers, rather than a single identifier,
as the first argument. If you don't want the same base DN and the
same filter for all the searches, you can also use an array of base DNs
and/or an array of filters. Those arrays must be of the same size as
the link identifier array since the first entries of the arrays are
used for one search, the second entries are used for another, and so
on. When doing parallel searches an array of search result
identifiers is returned, except in case of error, then the entry
corresponding to the search will be Parameters
Return Values
Returns a search result identifier or ExamplesThe example below retrieves the organizational unit, surname, given name and email address for all people in "My Company" where the surname or given name contains the substring $person. This example uses a boolean filter to tell the server to look for information in more than one attribute. Example #1 LDAP search
<?php |
more
Recently updated
more
Most requested
more
Last requests
|