Ldap_search
Lists the tree summary.
Syntax: int ldap_search (int handle, string base_dn, string filter, array [attributes]);
return value: Integer
Function type: http://www.aliyun.com/zixun/aggregation/32416.html "> network system
Content Description
This function is used to list tree-like data, and its range condition is ldap_scope_subtree. Parameter handle is the code that opens LDAP. Parameter base_dn is the most basic DN condition value, such as the O and C two fields. Parameter filter is a Boolean condition, its syntax can be found in the Netscape station a dirsdkpg.pdf file, where the Search Syntax part of a detailed description. Parameter attributes can be omitted to configure a finer list of properties.
Usage examples
The following example is a fragment program
<?php
$DN = "O=superldap company, C=TW";
$filter = "( sn= $person *) (givenname= $person *)) ";
$justthese = Array ("ou", "sn", "givenname", "Mail");
$SR =ldap_search ($ds, $dn, $filter, $justthese);
$info = Ldap_get_entries ($ds, $SR);
Print $info [count]. "Entries returned<p>";
?>
Reference
Ldap_list () Ldap_read ()