Red Hat DIRECTORY SERVER 7.1 - PLUG-IN PROGRAMMERS Manual page 50

Table of Contents

Advertisement

Creating a Plug-in Configuration File
Code Example 3-1
5. cn: Example Plug-in
6. nsslapd-pluginpath: /servers/lib/test-plugin.so
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:
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 51.
Line 9 specifies whether the plug-in is active by default. The
nsslapd-pluginenabled
following line specifies that the plug-in is active by default:
You can also use the Directory Server Console to activate or deactivate the
plug-in once the plug-in is loaded.
48
Red Hat Directory Server Plug-in Programmer's Guide • May 2005
An Example Plug-in Configuration File (Continued)
dn: cn=Example Plug-in,cn=plugins,cn=config
cn=plugins,cn=config
nsslapd-pluginpath: /servers/lib/test-plugin.so
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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents