Creating a Plug-in Configuration File
Code Example 3-1
5. cn: Example Plug-in
6. nsslapd-pluginpath: C:/ds60/lib/test-plugin.dll
7. nsslapd-plugininitfunc: searchdn_preop_init
8. nsslapd-plugintype: preoperation
9. nsslapd-pluginenabled: on
10. nsslapd-pluginid: Example Pre-operation Plug-in
11. nsslapd-pluginversion: 1.0
12. nsslapd-pluginvendor: Example Corporation
13. nsslapd-plugindescription: This plug-in does ...
This example plug-in configuration file defines an example plug-in as follows:
•
Line 1 sets the DN of the plug-in, which identifies the plug-in:
Here, the common name of the plug-in is set to
the DN entry (
that contains the configuration settings for plug-ins.
•
Lines 2-4 declare the object classes of the plug-in.
•
Line 5 sets the common name of the plug-in to
•
Line 6 defines the absolute path to the library that implements the plug-in:
In this example, the plug-in is a Windows NT DLL, located in the directory
C:/ds60/lib
•
Line 7 identifies the initialization function that the server calls to register the
plug-in. In this example, the initialization is set to
information on implementing initialization functions, see "Writing Plug-in
Initialization Functions," on page 42.
•
Line 8 sets the type of plug-in. In this case, it is a pre-operation plug-in. For a
complete list of the types of plug-in you can declare, refer to the "Summary of
Plug-in Directives," on page 53.
•
Line 9 specifies whether or not the plug-in is active by default. The
nsslapd-pluginenabled
following line specifies that the plug-in is active by default:
50
Netscape Directory Server Plug-in Programmer's Guide • October 2004
An Example Plug-in Configuration File (Continued)
dn: cn=Example Plug-in,cn=plugins,cn=config
cn=plugins,cn=config
nsslapd-pluginpath: C:/ds60/lib/test-plugin.dll
.
nsslapd-pluginenabled: on
) places the entry in the database tree
Example Plug-in
attribute can have a value of either
. The rest of
Example Plug-in
.
searchdn_preop_init
or
on
off
. For
. The
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