C language function:ldap_first_reference sample codes

Search sample code in the internet.It is the result.


TITLE : C API for Oracle Internet Directory
If successful, ldap_count_messages() returns the number of messages contained in a chain of results; if an error occurs such as the res parameter being invalid, -1 is returned. The ldap_count_messages() call can also be used to count the number of messages that remain in a chain if called with a message, entry, or reference returned by ldap_first_message(), ldap_next_message(), ldap_first_entry(), ldap_next_entry(), ldap_first_reference(), ldap_next_reference()........
http://docs.oracle.com/cd/B10501_01/network.920/a96577/capi.htm


TITLE : C API for Oracle Internet Directory
The ldap_first_entry() and ldap_next_entry() routines are used to step through and retrieve the list of entries from a search result chain. The ldap_first_reference() and ldap_next_reference() routines are used to step through and retrieve the list of continuation references from a search result chain. ldap_count_entries() is used to count the number of entries returned. ldap_count_references() is used to count the number of references returned........
http://docs.oracle.com/cd/B10501_01/network.920/a96577/capi.htm
TITLE : C API for Oracle Internet Directory
LDAPMessage *ldap_first_reference( LDAP *ld, LDAPMessage *res );.......
http://docs.oracle.com/cd/B10501_01/network.920/a96577/capi.htm
TITLE : C API for Oracle Internet Directory
The reference returned by a previous call to ldap_first_reference() or ldap_next_reference()........
http://docs.oracle.com/cd/B10501_01/network.920/a96577/capi.htm
TITLE : C API for Oracle Internet Directory
ldap_first_entry(), ldap_next_entry(), ldap_first_reference() and ldap_next_reference() all return NULL when no more entries or references exist in the result set to be returned. NULL is also returned if an error occurs while stepping through the entries or references, in which case the error parameters in the session handle ld will be set to indicate the error........
http://docs.oracle.com/cd/B10501_01/network.920/a96577/capi.htm
TITLE : C API for Oracle Internet Directory
ldap_count_entries() returns the number of entries contained in a chain of entries; if an error occurs such as the res parameter being invalid, -1 is returned. The ldap_count_entries() call can also be used to count the number of entries that remain in a chain if called with a message, entry or reference returned by ldap_first_message(), ldap_next_message(), ldap_first_entry(), ldap_next_entry(), ldap_first_reference(), ldap_next_reference()........
http://docs.oracle.com/cd/B10501_01/network.920/a96577/capi.htm
TITLE : C API for Oracle Internet Directory
The reference to parse, as returned by ldap_result(), ldap_first_reference(), or ldap_next_reference()........
http://docs.oracle.com/cd/B10501_01/network.920/a96577/capi.htm
TITLE : Chapter 5 Searching a LDAP Directory
* If you are retrieving a chain of results, you can call ldap_first_message() and ldap_next_message() to iterate through the results in the chain. If you are just interested in entries, you can call ldap_first_entry() and ldap_next_entry(). If you are just interested in search references, you can call ldap_first_reference() and ldap_next_reference()........
http://docs.oracle.com/cd/E19957-01/817-6707/search.html
TITLE : Chapter 5 Searching a LDAP Directory
* If you want to retrieve just the search references from the chain, call ldap_first_reference() and ldap_next_reference(). Both of these functions return a pointer to an LDAPMessage structure that represents a search reference. You can get the count of the search references in the chain by calling ldap_count_references()........
http://docs.oracle.com/cd/E19957-01/817-6707/search.html
search Google

https://www.google.com/#q=ldap_first_reference