21.5. slapi_control_present()
Determines whether the specified object identification (OID) identifies a control that is present in a list of controls.
#include "slapi-plugin.h" int slapi_control_present( LDAPControl **controls, char *oid, struct berval **val, int *iscritical );
This function takes the following parameters:
|
controls
| List of controls that you want to check. |
|
oid
| OID of the control that you want to find. |
|
val
| If the control is present in the list of controls, specifies the pointer to the berval structure containing the value of the control. |
|
iscritical
| If the control is present in the list of controls, specifies whether the control is critical to the operation of the server:
|
This function returns one of the following values:
- 1 if the specified control is present in the list of controls.
- 0 if the control is not present in the list of controls.
The val output parameter is set to point into the controls array. A copy of the control value is not made.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.