ldap_next_reference (Windows CE 5.0)

Send Feedback

This function retrieves a reference from a search result chain.

LDAPMessage* ldap_next_reference(LDAP* ld,LDAPMessage* entry);

Parameters

  • ld
    [in] Session handle.
  • entry
    [in] Entry returned by a previous call to ldap_first_reference or to this function.

Return Values

If this function succeeds, it returns the reference. If no reference exists in the result set, it returns NULL.

If this function fails, it returns NULL and sets the session error parameters in the LDAP data structure.

Remarks

Use this function in conjunction with ldap_first_reference to step through and retrieve a list of continuation references from a search result chain.

This function returns subordinate referrals (references) that are returned in search responses. A subordinate referral is one in which the server has returned some data and the referral has been passed to other naming contexts below the current level in the tree. To step through external references in which the naming context does not reside on the server, use the ldap_parse_result function.

You do not have to explicitly free the returned reference, as it is freed when the message itself is freed.

Requirements

OS Versions: Windows CE .NET 4.0 and later.
Header: Winldap.h.
Link Library: Wldap32.lib.

See Also

ldap_first_reference | ldap_parse_result

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.