Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual page 285

Table of Contents

Advertisement

Returns
This function returns one of the following values:
A pointer to an allocated
NULL
Description
This function duplicates the contents of an
the
LDAPControl
structure is returned.
Memory Concerns
The structure that is returned should be freed by calling
which is an LDAP API function (see the Netscape LDAP SDK for C Programmer's
Guide).
See Also
ldap_control_free()
slapi_get_supported_controls_copy()
Retrieves an allocated array of object identifiers (OIDs) representing the
controls supported by the Directory Server. You can register new controls by
calling
Syntax
#include "slapi-plugin.h"
int slapi_get_supported_controls_copy( char ***ctrloidsp,
unsigned long **ctrlopsp );
Parameters
This function takes the following parameters:
ctrloidsp
ctrlopsp
if an error occurs.
are copied to a new, allocated structure, and a pointer to the new
slapi_register_supported_control()
Pointer to a character array that will receive the set of supported
control OIDs. Pass NULL for this parameter if you do not wish to
receive the OIDs.
Pointer to an unsigned long array that will receive the supported
operation values for each control in the ctrloidsp array. Pass
NULL for this parameter if you do not wish to receive the
supported operation values.
structure if successful.
LDAPControl
LDAPControl
.
Functions for Dealing with Controls
structure. All fields within
ldap_control_free()
Chapter 15
Function Reference
,
285

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents