Gets an array of object identifications (OIDs) representing the controls supported by the directory server. You can register new controls by calling the slapi_register_supported_control() function.
Syntax
#include "slapi-plugin.h"
int slapi_get_supported_controls( char ***ctrloidsp,
unsigned long **ctrlopsp );
Parameters
The function has the following parameters:
Returns
0 if successful.
Description
When you call the slapi_register_supported_control() function to register a control, you specify the OID of the control and the IDs of the operations that support the control.
The server records this information in two arrays: an array of control OIDs and an array of operations that support the control. You can get these arrays by calling the slapi_get_supported_controls() function.
For each OID specified in the ctrloidsp array, the corresponding array element (with the same index) in the ctrlopsp array identifies the operations that support the control.
For a list of the possible IDs for the operations, see slapi_register_supported_control().
Example
[To be added]
See Also