Returns a pointer to the next reference of message type, LDAP_RES_SEARCH_REFERENCE, in chain of LDAPMessage structures.
#include <ldap.h>
LDAPMessage *ldap_next_reference (
LDAP *ld,
LDAPMessage *ref);
(IN) Points to the handle for the LDAP session.
(IN/OUT) Points to the next LDAPMessage structure in the search result chain. On the first call, this is the value returned by the ldap_first_reference function. On subsequent calls, it is the value returned by the ldap_next_reference function.
If the ldap_next_reference function encounters an error, the function returns NULL and sets the LDAP_OPT_RESULT_CODE option in the LDAP session handle.