Complete Contents
Getting Started
Chapter 1 Understanding Server Plug-Ins
Chapter 2 Writing and Compiling Plug-Ins
Chapter 3 Calling the Front-End API Functions
Chapter 4 Quick Start
Chapter 5 Writing Database Plug-Ins
Chapter 6 Writing Pre/Post-Operation Plug-Ins
Chapter 7 Defining Functions for LDAP Operations
Chapter 8 Defining Functions for Database Operations
Chapter 9 Defining Functions for Authentication
Chapter 10 Writing Entry Store/Fetch Plug-Ins
Chapter 11 Writing Extended Operation Plug-Ins
Chapter 12 Writing Matching Rule Plug-Ins
Chapter 13 Data Type and Structure Reference
Chapter 14 Function Reference
Chapter 15 Parameter Reference
Glossary
Previous Next Contents Bookshelf Function List



 slapi_get_supported_controls()
Gets an array of object identifications (OIDs) representing the controls supported by the directory server. You can register new controls by calling the slapi_register_supported_control() function.

Syntax

#include "slapi-plugin.h"
int slapi_get_supported_controls( char ***ctrloidsp,
unsigned long **ctrlopsp );

Parameters

The function has the following parameters:
ctrloidsp

Pointer to an array of the OIDs of the controls supported by the server.
ctrlopsp

Pointer to an array of IDs specifying the LDAP operations that support each control. For a list of the possible IDs and their values, see slapi_register_supported_control().

Returns

0 if successful.

Description

When you call the slapi_register_supported_control() function to register a control, you specify the OID of the control and the IDs of the operations that support the control.

The server records this information in two arrays: an array of control OIDs and an array of operations that support the control. You can get these arrays by calling the slapi_get_supported_controls() function.

For each OID specified in the ctrloidsp array, the corresponding array element (with the same index) in the ctrlopsp array identifies the operations that support the control.

For a list of the possible IDs for the operations, see slapi_register_supported_control().

Example

[To be added]

See Also

 

© Copyright 1998 Netscape Communications Corporation