For example, you can use a server control to specify that you want the server to sort search results in an LDAP search operation.
LDAPControl is defined as follows:
typedef struct ldapcontrol {
char *ldctl_oid;
struct berval ldctl_value;
char ldctl_iscritical;
} LDAPControl, *PLDAPControl;
The fields in this structure are described below: