LDAPsortkey represents a server control used to specify that the server should sort the search results before sending them back to the client. Controls are part of the LDAP v3 protocol.
For example, you can use LDAPsortkey to specify that you want the server to sort search results by the roomNumber attribute.
LDAPsortkey is defined as follows:
typedef struct LDAPsortkey {char *sk_attrtype;
char *sk_matchruleoid;
int sk_reverseorder;
} LDAPsortkey;The fields in this structure are described below:
sk_attrtype | |
sk_matchruleoid | Object identifier (OID) of the matching rule that you want to use for sorting. |
sk_reverseorder |
LDAPsortkey structures, you can call the ldap_create_sort_keylist() function.
To free an array of LDAPsortkey structures, you can call the ldap_free_sort_keylist() function.
Last Updated: 10/01/98 17:05:28