#include <ldap.h>
LDAPMessage *ldap_first_entry(
LDAP *ld,
LDAPMessage *result)
|
The ldap_first_entry(), ldap_next_entry(), and ldap_count_entries() functions are used to parse results received from ldap_result() or the synchronous LDAP search functions ldap_search_s() and ldap_search_st().
The ldap_first_entry() function takes the result from a call to ldap_result(), ldap_search_s(), or ldap_search_st() and returns a pointer to the first entry in the result.
No OS/400 authority is required. All authority checking is done by the LDAP server.
If ldap_first_entry() is not successful, NULL is returned, ld_errno will be set to indicate the error. See LDAP Client API Error Conditions for possible LDAP error code values. Use ldap_get_errno() function to retrieve the error information.
The following message may be set from this function.
CPF3CF2 E Error(s) occurred during running of ldap_first_entry API.
ldap_next_entry() -- Return next entry in a chain of search results.
ldap_count_entry() -- Return number of entries in a chain of search results.
ldap_get_entry_controls_np() -- Extract server controls from an entry.
ldap_first_reference() -- Return first continuation reference in a chain of search results.
ldap_next_reference() -- Return next continuation reference in a chain of search results.
ldap_count_references() -- Return number of continuation reference in a chain of search results.
ldap_parse_reference_np() -- Extract information from a continuation reference.
|
Top
| LDAP APIs List APIs by category |
| [Information Center Home Page | Feedback ] | [Legal | AS/400 Glossary] |