C language function:ldap_create_sort_control sample codes

Search sample code in the internet.It is the result.


TITLE : Chapter 13 Working with LDAP Controls
You can either allocate and create the control yourself, or you can call a function to create the control. For example, you can call the ldap_create_sort_control() function to create a server-sorting control. To include a control in a request, call one of the LDAPv3 API functions (functions with names ending with _ext and _ext_s). These functions allow you to pass in an array of server controls and an array of client controls........
http://docs.oracle.com/cd/E19957-01/817-6707/controls.html


TITLE : Chapter 13 Working with LDAP Controls
Next, to create the server-side sorting control, you pass the sort key list (the array of LDAPsortkey structures) to the ldap_create_sort_control() function. The function passes back a newly created sort control, an LDAPControl structure, which you can include in a search request........
http://docs.oracle.com/cd/E19957-01/817-6707/controls.html
TITLE : Chapter 13 Working with LDAP Controls
After you call the ldap_create_sort_control() function and create the control, you should free the array of LDAPsortkey structures by calling ldap_free_sort_keylist(). When you are done receiving sorted results from the server, you should free the LDAPControl structure by calling ldap_control_free()........
http://docs.oracle.com/cd/E19957-01/817-6707/controls.html
TITLE : Chapter 13 Working with LDAP Controls
rc = ldap_create_sort_control( ld, sortkeylist, 1, &sortctrl );.......
http://docs.oracle.com/cd/E19957-01/817-6707/controls.html
TITLE : Example Code for Using LDAP VLV (Windows)
ldapErr = ldap_create_sort_control(pLdapConnection,.......
http://msdn.microsoft.com/ja-jp/library/windows/desktop/aa366107(v=vs.85).aspx
TITLE : OpenLDAP ITS - Message 4314
consistency with ldap_create_sort_control() and ldap_create_control()........
http://www.openldap.org/its/@findid=4314
TITLE : OpenLDAP ITS - Message 4314
> consistency with ldap_create_sort_control() and ldap_create_control()........
http://www.openldap.org/its/@findid=4314
search Google

https://www.google.com/#q=ldap_create_sort_control