In the example above for a given LDAP operation, the pre-operation plug-in
function registered by
function registered by
So if
registered by
calling
operation by returning a non-zero value, the server will not call
pre_search_fn2()
Summary of Plug-In Directives
The following table summarizes the different types of plug-ins that you can specify
in the plug-in configuration file.
Table 3-1
Directives for Specifying Different Plug-In Types
Directive
entryfetch
entrystore
extendedop
matchingRule
postoperation
pre_fn_1()
pre_fn_2()
is registered by
pre_search_fn()
pre_fn_2()
pre_search_fn2()
.
Description
Declares an entry fetch plug-in, which is called by the server after retrieving an
entry from the default back-end database.
Example of use: If you encrypt data with an entry store plug-in function before
saving the data to the database, you can define an entry fetch function that
decrypts data after reading it from the database.
Declares an entry store plug-in, which is called by the server before saving an
entry to the default back-end database. (If you are writing your own database
plug-in, you do not need to use this plug-in.)
Example of use: You can define an entry store function to encrypt data before
saving the data to the database.
Declares an extended operation plug-in, which is called by the server when
receiving a request for an extended operation from a client.
Declares a matching rule plug-in, which is called by the server when receives a
search request with an extensible matching search filter from a client.
This type of plug-in is also called by the server when indexing attributes for the
back-end database.
Declares a post-operation/data notification plug-in, which is called by the
server after performing an LDAP operation.
Example of use: You can define a data notification function to send notification
to the administrator if certain data has changed.
are called before the pre-operation plug-in
.
pre_fn_1()
, the Directory Server calls
. Note that if
pre_search_fn()
Creating a Plug-In Configuration File
and
pre_search_fn2()
before
pre_search_fn()
terminates the LDAP
Chapter 3
Configuring Plug-Ins
is
43
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.01 - PLUG-IN and is the answer not in the manual?
Questions and answers