Specifying Directory Server Compatibility; Specifying Information About The Plug-In - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

NOTE
You do not need to export all plug-in functions. Specifically, you do
not need to export any plug-in function that is specified in the
parameter block.

Specifying Directory Server Compatibility

You need to specify the compatibility version of your plug-in so that the Directory
Server can determine whether or not it supports the plug-in.
To specify the plug-in compatibility version, call the
function, and set the
associated with the plug-in. For example:
slapi_pblock_set(pb, SLAPI_PLUGIN_VERSION, \
SLAPI_PLUGIN_VERSION_03);
Plug-in version 1 (
and 4.x of the Directory Server.
Plug-in version 2 (
of the Directory Server.
Plug-in version 3 (
and later of the Directory Server.

Specifying Information about the Plug-in

You specify information about your plug-in, such as a description of the plug-in,
with the
Slapi_PluginDesc
"Slapi_PluginDesc," on page 217.
It is advised that you include a plug-in description since the Netscape Console
displays this information as part of the server configuration information.
To specify plug-in information, call the
SLAPI_PLUGIN_DESCRIPTION
Code Example 2-3
/* Specify information about the plug-in */
Slapi_PluginDesc mypdesc = { "test-plugin", "example.com",
"0.5", "sample pre-operation plugin" };
...
SLAPI_PLUGIN_VERSION
SLAPI_PLUGIN_VERSION_01
SLAPI_PLUGIN_VERSION_02
SLAPI_PLUGIN_VERSION_03
structure. For details on this data structure, see
slapi_pblock_set()
parameter to this structure. For example:
Specifying Plug-in Information
Writing Plug-in Initialization Functions
slapi_pblock_set()
parameter to the version number
) is compatible with versions 3.x
) is compatible with version 4.x
) is compatible with versions 7.0
function, and set the
Chapter 2
Writing and Compiling Plug-ins
43

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents