ldap_next_reference()--Retrieve the next Continuation Reference in a Chain
of Search Results
Syntax
#include <ldap.h>
LDAPMessage *ldap_next_reference(
LDAP *ld,
LDAPMessage *result)
Default Public Authority: *USE
Library Name/Service Program: QSYS/QGLDCLNT
Threadsafe: Yes
The ldap_next_reference() function is used to return the
next continuation reference from the search result chain.
Authorities and Locks
No i5/OS authority is required.
Parameters
- ld
- (Input) Specifies the LDAP pointer returned by a previous call to ldap_init(),
ldap_ssl_init(), or ldap_open().
- result
- (Input) Specifies the result returned by a call to ldap_result() or one of
the synchronous search routines (ldap_search_s(),
ldap_search_st(), or
ldap_search_ext_s()).
- ref
- (Input) Specifies a pointer to a search continuation reference returned on
a previous call to ldap_first_reference() or
ldap_next_reference().
Return Value
- LDAPMessage *
- pointer to the next continuation reference.
- NULL
- when no more continuation references exist in the result set to be
returned.
Error Conditions
If ldap_next_reference() is not successful,
ld_errno will be set to indicate the error. See LDAP Client API Error Conditions for possible LDAP
error code values. Use the ldap_get_errno()
function to retrieve the error information.
Error Messages
The following message may be sent from this function
Message ID |
Error Message Text |
CPF3CF2 E |
Error(s) occurred during running of
ldap_next_reference API. |
Related Information
API introduced: V4R5