Functions For Dealing With Controls - Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual

Table of Contents

Advertisement

Functions for Dealing with Controls

This section contains reference information on routines for dealing with controls.
Table 15-7
Routines for Dealing with Controls
Function
slapi_build_control()
slapi_build_control_from_berval()
slapi_control_present()
slapi_dup_control()
slapi_get_supported_controls_copy()
slapi_register_supported_control()
slapi_build_control()
Creates an
flag.
Syntax
#include "slapi-plugin.h"
int slapi_build_control( char *oid, BerElement *ber,
char iscritical, LDAPControl **ctrlp );
Parameters
This function takes the following parameters:
oid
ber
iscritical
ctrlp
Description
Creates an LDAPControl structure based on a BerElement, an
OID, and a criticality flag.
Creates an LDAPControl structure based on a struct berval, an
OID, and a criticality flag.
Determines whether or not the specified object identification (OID)
identifies a control that is present in a list of controls.
Makes an allocated copy of an LDAPControl.
Retrieves an allocated array of object identifiers (OIDs)
representing the controls supported by the Directory Server.
Registers the specified control with the server. This function
associates the control with an object identification (OID).
structure based on a
LDAPControl
The OID (object identifier) for the control that is to be created.
A BerElement that contains the control value. Pass NULL if the
control has no value.
The criticality flag. If non-zero, the control will be marked as
critical. If 0, it wall not be marked as critical.
Pointer that will receive the allocated LDAPControl structure.
Functions for Dealing with Controls
, an OID, and a criticality
BerElement
Chapter 15
Function Reference
281

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents