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
SLAPI_PLUGIN_VERSION
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
see "Slapi_PluginDesc," on page 207.
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_01
SLAPI_PLUGIN_VERSION_02
SLAPI_PLUGIN_VERSION_03
structure. For details on this data structure,
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 6.1
function and set the
Chapter 2
Writing and Compiling Plug-Ins
33
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - PLUG-IN and is the answer not in the manual?
Questions and answers