Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 242

Table of Contents

Advertisement

Functions for Dealing with Controls
slapi_control_present()
Determines whether or not the specified object identification (OID) identifies a
control that is present in a list of controls.
Syntax
#include "slapi-plugin.h"
int slapi_control_present( LDAPControl **controls, char *oid,
struct berval **val, int *iscritical );
Parameters
This function takes the following parameters:
controls
oid
val
iscritical
Returns
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.
Memory Concerns
The
val
control value is not made.
See Also
slapi_get_supported_controls_copy()
slapi_register_supported_control()
242
Netscape Directory Server Plug-In Programmer's Guide • May 2002
List of controls that you want to check.
OID of the control that you want to find.
If the control is present in the list of controls, specifies the pointer to
the berval structure containing the value of the control.
If the control is present in the list of controls, specifies whether or not
the control is critical to the operation of the server:
• 0 means that the control is not critical to the operation.
• 1 means that the control is critical to the operation.
output parameter is set to point into the controls array. A copy of the

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents