Writing Pre/Post-Operation Plug-Ins
This chapter explains how to write functions that the Netscape Directory Server
(Directory Server) calls before and after executing an LDAP operation. These
functions are called pre-operation and post-operation plug-in functions.
•
How Pre/Post-Operation Plug-Ins Work
•
Types Pre-Operation and Post-Operation Functions
•
Registering Pre/Post-Operation Functions
How Pre/Post-Operation Plug-Ins Work
The Directory Server can perform the following LDAP operations: Bind, Unbind,
Search, Modify, Add, Delete, Modify RDN, Compare, and Abandon.
NOTE
You can configure the Directory Server to call your custom plug-in functions before
and after executing any of these LDAP operations.
For example, you can write a pre-operation function that validates an entry before
the server performs an LDAP add operation. An example of a post-operation
plug-in function would be one that sends a notification to a user after their entry
has been modified by an LDAP modify operation.
The Directory Server can also perform extended operations as
defined in the LDAP v3 protocol. For information on implementing
plug-in functions to execute extended operations, see Chapter 10,
"Writing Extended Operation Plug-Ins".
Chapter 6
71
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - PLUG-IN and is the answer not in the manual?
Questions and answers