Registering Matching Rule Functions - Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual

Table of Contents

Advertisement

Input and Output Parameters Available to a Matching Rule Plug-In Initialization Function
Table 11-7
Parameter Name
SLAPI_PLUGIN_CLOSE_FN
SLAPI_PLUGIN_PRIVATE

Registering Matching Rule Functions

Depending on the Directory Server version, add the appropriate information for
your plug-in function:
In Directory Server 6.x, shut down the server, add the plug-in parameters to the
dse.ldif
example, your plug-in entry might look like this:
dn: cn=Test MatchineRule,cn=plugins,cn=config
objectClass: top
objectClass: nsSlapdPlugin
objectClass: extensibleObject
cn: Test MatchingRule
nsslapd-pluginPath:
/usr/netscape/servers/slapd-host1/plugins/slapd/slapi/
nsslapd-pluginInitfunc: testmatchrule_init
nsslapd-pluginType: matchingRule
nsslapd-pluginEnabled: on
nsslapd-pluginId: test-matchingrule
nsslapd-pluginarg0: /usr/netscape/servers/slapd-host1/
customplugins/filename.conf
In Netscape Directory Server 4.x, add this directive to the
plugin matchingrule [on|off] "<name of plugin>" \
<init_fn_name>
is the name and path of the library where the function is defined. For example, the
following directive registers the initialization function named
which is defined in the library
file, and restart the server (see Chapter 3, "Configuring Plug-Ins"). For
examples/libtest-plugin.so
<library_name> <init_fn_name> [<arguments>...]
is the name of your initialization function and
Data Type
void *
(function pointer)
void *
/usr/ns/myplugin.so
Chapter 11
Registering Matching Rule Functions
Description
(Output parameter) The "close"
function, which the server calls
before shutting down.
(Output parameter) Pointer to
any private data you want
passed to your plug-in
functions.
slapd.ldbm.conf
<library_name>
my_init_fn()
:
Writing Matching Rule Plug-Ins
file:
,
145

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents