Table 11-7
Input and Output Parameters Available to a Matching Rule Plug-in Initialization Function
Parameter Name
SLAPI_PLUGIN_MR_INDEXER_CREATE_FN
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 current releases of Directory Server, shut down the server, add the plug-in
parameters to the
Plug-ins"). For 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
Data Type
void *
(function pointer)
void *
(function pointer)
void *
dse.ldif
examples/libtest-plugin.so
plugin matchingrule [on|off] "<name of plugin>" \
<library_name> <init_fn_name> [<arguments>...]
file, and restart the server (see chapter 3, "Configuring
Chapter 11
Registering Matching Rule Functions
Description
Output parameter. The factory
function used for creating
indexers.
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
Writing Matching Rule Plug-ins
file:
155
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?
Questions and answers