PHP : Function Reference : LDAP Functions : ldap_first_entry
eddie
Here's a nice way to user ldap_first_entry,ldap_next_entry.
$res = ldap_search($ldapc,$searchroot,$filter,$attributes);
for ($entryID=ldap_first_entry($ldapc,$res);
$entryID!=false;
$entryID=ldap_next_entry($ldapc,$entryID))
{
// Do stuff with the $entryID.
$values = ldap_get_values($ldapc,$entryID,'uid');
}
|