HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
slapi_operation_set_flag( op, SLAPI_OP_FLAG_NO_ACCESS_CHECK );
}
Syntax
#include "slapi-plugin.h"
void slapi_operation_set_flag( Slapi_Operation *op,
unsigned long flag)
Parameter
This function takes the following parameters:
Operation data structure.
op
Flag to be set. By default, only one flag is supported, the
SLAPI_OP_FLAG_NO_ACCESS_CHECK flag, which specifies that access control should
not be checked.
flag
See also
“slapi_operation_clear_flag()”
“slapi_operation_is_flag_set()”
49.3 slapi_operation_clear_flag()
Clears the specified flag for the operation.
Syntax
#include "slapi-plugin.h"
void slapi_operation_clear_flag( Slapi_Operation *op,
unsigned long flag)
Parameter
This function takes the following parameters:
Operation data structure.
op
Flag to be cleared. By default, only one flag is supported, the
SLAPI_OP_FLAG_NO_ACCESS_CHECK flag, which specifies that access control should
not be checked.
flag
See also
“slapi_operation_set_flag()”
“slapi_operation_is_flag_set()”
49.4 slapi_operation_is_flag_set()
Description 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.
Syntax
#include "slapi-plugin.h"
int slapi_operation_is_flag_set(Slapi_Operation *op, unsigned long flag)
372 Functions related to data interoperability