Creates and encodes a search status control.
#include <ldap.h>ldap_create_sstatus_control ( LDAP *ld, LDAPSstatCtrl *sstatctrl, int isCritical, LDAPControl **ctrlp )
(IN) Points to the handle for the LDAP session obtained from a call to ldap_init().
(IN) The address of an structure whose contents are used to construct the value of the control that is created.
(IN) Indicates the criticality of the control to the operation. 0 indicates that the control is not critical to the operation and a non-zero values indicates that the control is critical to the operation.
(OUT) Returns a pointer to the created LDAPControl. This control is free from calling the ldap_control_free() after returning the pointer.
0x00 |
LDAP_SUCCESS |
Non-zero |
Failure. See |
The ldap_create_geteffective_control creates a search status control, that can be used as the server control parameter in the ldap_search_ext and the ldap_search_ext_s functions.