Registering Matching Rule Functions
Chapter
11
Writing Matching Rule Plug-Ins
145
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
file, and restart the server (see Chapter 3, “Configuring 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/
examples/libtest-plugin.so
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
slapd.ldbm.conf
file:
plugin matchingrule [on|off] “<name of plugin>” \
<library_name> <init_fn_name> [<arguments>...]
<init_fn_name>
is the name of your initialization function and
<library_name>
is the name and path of the library where the function is defined. For example, the
following directive registers the initialization function named
my_init_fn()
,
which is defined in the library
/usr/ns/myplugin.so
:
SLAPI_PLUGIN_CLOSE_FN
void *
(function pointer)
(Output parameter) The “close”
function, which the server calls
before shutting down.
SLAPI_PLUGIN_PRIVATE void
*
(Output parameter) Pointer to
any private data you want
passed to your plug-in
functions.
Table 11-7
Input and Output Parameters Available to a Matching Rule Plug-In Initialization Function
Parameter Name
Data Type
Description
Содержание NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION
Страница 1: ...Plug In Programmer s Guide Netscape Directory Server Version6 2 December 2003...
Страница 18: ...18 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 26: ...Types of Directory Server Plug Ins 26 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 38: ...Compiling a Directory Server Plug In 38 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 54: ...An Example Pre Operation Plug In 54 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 56: ...56 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 90: ...Processing an LDAP Abandon Operation 90 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 110: ...Using SASL with an LDAP Client 110 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 112: ...112 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 122: ...Specifying Start and Close Functions 122 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 168: ...Plug In API Reference 168 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 170: ...170 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 214: ...Summary of Data Types and Structures 214 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 554: ...Functions for Registering Additional Plug Ins 554 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 596: ...Parameters for the Virtual Attribute Service 596 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 600: ...600 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 612: ...612 Netscape Directory Server Plug In Programmer s Guide December 2003...