Syntax
int ldap_first_entry(int ldapid, ldapresult, result[, boolean trace] )
Description
ldap_first_entry returns the first entry from the list of results returned by ldap_search if present, otherwise returns an empty entry.
If the optional trace parameter is set to true, any errors and warnings from the LDAP function are written to stdout.
Example
entry=ldap_first_entry(ldapid, searchresults); while( entry) { func_process_entry(entry); entry=ldap_next_entry(ldapid, entry); }