Syntax

Parameters

Pointer to a character array that will receive the set of
supported control OIDs. Pass NULL for this parameter if
you do not wish to receive the OIDs.

ctrlopsp

Pointer to an unsigned long array that will receive the supported
operation values for each control in the ctrloidsp array.
Pass NULL for this parameter if you do not wish to receive
the supported operation values.

Returns

This function returns 0 if successful, or a non-zero
value if an error occurs.

Description

This function replaces the deprecated slapi_get_supported_controls() function from previous releases, as it was not multithread safe.

When you call slapi_register_supported_control() 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 copies of these arrays by calling slapi_entry_get_uniqueid() .

For each OID returned 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().