49.4. slapi_operation_is_flag_set()
This function determines whether the specified flag is set in the operation. The code sample below demonstrates how ACL checks for internal operations are skipped if the plug-in specifies to not check for access control.
if (operation_is_flag_set(operation, SLAPI_OP_FLAG_NO_ACCESS_CHECK)) return LDAP_SUCCESS; // Success indicates that access is allowed.
#include "slapi-plugin.h" int slapi_operation_is_flag_set(Slapi_Operation *op, unsigned long flag)
This function takes the following parameters:
|
op
| Operation data structure. | |||
|
flag
| Flag to check. There are three possible flags:
|
This function returns 0 if the flag is not set and a non-zero value if the flag is set.

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.