#include <ldap.h>
int ldap_parse_sort_control( LDAP *ld, LDAPControl **ctrls,
unsigned long *result, char **attribute );
ld |
Connection handle, which is a pointer to an |
ctrls |
An array of controls returned by the server. You obtain these controls by calling the |
result | Pointer to the sort control result code retrieved by this function. |
attribute |
When done, you can free this by calling the |
LDAP_SUCCESS if successful. LDAP_PARAM_ERROR if an invalid parameter was passed to the function (for example, if the LDAP connection is not valid). LDAP_NO_MEMORY if memory cannot be allocated to decode the control returned by the server. LDAP_DECODING_ERROR if an error occurred when BER decoding the control. LDAP_CONTROL_NOT_FOUND if no control can be found in the response returned from the server. ldap_parse_sort_control() function as part of the process of retrieving sorted search results from a server.
Call this function after receiving the results (call ldap_result() to get the results) and parsing the server controls from the results (call ldap_parse_result() to get the controls from the results).
ldap_create_sort_control().
Last Updated: 10/01/98 17:06:23