C language function:ldap_parse_reference sample codes

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


TITLE : Chapter 5 Searching a LDAP Directory
* To get a search reference from a result (an LDAPMessage structure), call ldap_parse_reference()........
http://docs.oracle.com/cd/E19957-01/817-6707/search.html


TITLE : Chapter 5 Searching a LDAP Directory
parse_rc = ldap_parse_reference( ld, msg, &referrals, NULL, 0 );.......
http://docs.oracle.com/cd/E19957-01/817-6707/search.html
TITLE : Chapter 5 Searching a LDAP Directory
parse_rc = ldap_parse_reference( ld, res, &referrals, NULL, 1 );.......
http://docs.oracle.com/cd/E19957-01/817-6707/search.html
TITLE : Chapter 5 Searching a LDAP Directory
* LDAP_RES_SEARCH_REFERENCE indicates that the result is a search reference found within the scope of the search. You can pass the LDAPMessage structure representing the search reference to the ldap_parse_reference() function to get the referrals (LDAP URLs) to other servers. For details, see "Getting Referrals from Search References"........
http://docs.oracle.com/cd/E19957-01/817-6707/search.html
TITLE : Chapter 5 Searching a LDAP Directory
A search reference returned from the server contains one or more referrals (LDAP URLs that identify other LDAP servers). To retrieve these referrals, you need to call the ldap_parse_reference() function. Code Example 5-13 gets and prints the referrals from a search reference........
http://docs.oracle.com/cd/E19957-01/817-6707/search.html
TITLE : Chapter 5 Searching a LDAP Directory
parse_rc = ldap_parse_reference( ld, msg, &referrals, NULL, 0 );.......
http://docs.oracle.com/cd/E19957-01/817-6707/search.html
search Google

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