#include <ldap.h>
int ldap_parse_sort_control(
LDAP *ld,
LDAPControl **serverControls,
unsigned long *sortRC,
char **attribute)
The ldap_parse_sort_control() function is used to retrieve the values in a sorted results control used when sorting search results.
See Sorted LDAP Search Results for usage information about the functions used to perform sorting of entries returned from the server following an LDAP search operation.
No IBM® i authority is required. All authority checking is done by the LDAP server.
See the example that uses ldap_create_sort_keylist(), ldap_create_sort_control(), ldap_free_sort_keylist(), and ldap_parse_sort_control() to perform an LDAP sorted search in ldap_create_sort_keylist() --Create a Structure with Sort Key Values used when Sorting Search Results.
[ Back to top | LDAP APIs | APIs by category ]