In the previous example the
$ds = ldap.myserver.com // your ldap server
should be
$ds = ldap_connect( "ldap.myserver.com" ) ; // your ldap server
![]() |
|
||||||||||
|
ldap_readDescriptionresource ldap_read ( resource link_identifier, string base_dn, string filter [, array attributes [, int attrsonly [, int sizelimit [, int timelimit [, int deref]]]]] )Returns a search result identifier or FALSE on error.
ldap_read() performs the search for a
specified An empty filter is not allowed. If you want to retrieve absolutely all information for this entry, use a filter of "objectClass=*". If you know which entry types are used on the directory server, you might use an appropriate filter such as "objectClass=inetOrgPerson". This call takes 5 optional parameters. See ldap_search() notes.
From 4.0.5 on it's also possible to do parallel searches. See ldap_search() for details. ldap_read
me at example dot com
30-Aug-2007 12:23
In the previous example the
cnicholl at yahoo dot com
21-Dec-2005 11:21
Clarification of the ldap_read command syntax:
askegg at challenger dot com dot au
21-Aug-2003 02:11
In addition to the above you can also use ldap_list for a ONE scope LDAP search.
sbarnum at mac dot com
18-Jul-2001 02:15
This differs from ldap_search() by not recursing down to sub-entries. if you know the dn of the item you're looking for and only want info on that entry, use ldap_read() and pass it the full dn of the item you want. |