Initial Release 6

Function : LDAP
ldap_first_reference - Get the first reference in the list of references.
----------------------------------------------------------------------------------------------------------

#include <ldap.h>

LDAPMessage * LNPUBLIC ldap_first_reference(
LDAP *ld,
LDAPMessage *chain);

Description :

This function gets the first reference in the list of references in a result chain returned by ldap_result. For search operations, the result chain can actually include referral messages, entry messages, and result messages.

Parameters :

Sample Usage :

ref = ldap_first_reference(ld, chain);

See Also :

ldap_count_references
----------------------------------------------------------------------------------------------------------