Decodes the information returned from a search operation that used a VLV (virtual list view) control.
#include <ldap.h>
int ldap_parse_vlv_control (
LDAP *ld
LDAPControl **ctrlp,
unsigned long *target_posp,
unsigned long *list_countp,
struct berval **contextp,
int *errcodep);
(IN) Points to the handle of the LDAP session.
(IN) Points to a NULL-terminated array of LDAPControl structures, typically obtained by calling the ldap_parse_result function.
(OUT) Points to the list index of the target entry. If this parameter is NULL, the target position is not returned. The index returned is an approximation of the position of the target entry. It is not guaranteed to be exact.
(OUT) Points to the server's estimate of the size of the list. If this parameter is NULL, the size is not returned.
(OUT) Points to the address of a berval structure that contains a server-generated context identifier if server returns one. If server does not return a context identifier, the server returns a NULL in this parameter. If this parameter is set to NULL, the context identifier is not returned.
You should use this returned context in the next call to create a VLV control.
When the berval structure is no longer needed, you should free the memory by calling the ber_bvfree function.
(OUT) Points to the result code returned by the server. If this parameter is NULL, the result code is not returned. See Remarks for a list of possible return codes.
|
0x00 |
LDAP_SUCCESS |
|
Non-zero |
Failure. See |
|
0x5D |
LDAP_CONTROL_NOT_FOUND |
The errcodep parameter returns one of the following values.
For example code, see vlvcntl.c.