Returns a pointer to the next entry of message type, LDAP_RES_SEARCH_ENTRY, in chain of LDAPMessage structures.
#include <ldap.h>
LDAPMessage *ldap_next_entry (
LDAP *ld,
LDAPMessage *entry);
(IN) Points to the handle for the LDAP session.
(IN/OUT) Points to the next LDAPMessage structure in the chain. On the first call, this is the value returned by the ldap_first_entry function. On subsequent calls, it is the value returned by the ldap_next_entry function.
If the ldap_next_entry function encounters an error, the function returns NULL and sets the LDAP_OPT_RESULT_CODE option in the LDAP session handle.
Use the ldap_get_dn, ldap_first_attribute, ldap_get_values functions to retrieve information about the entry.