Chapter 4 A Quick Example; An Example Pre-Operation Plug-In - Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual

Table of Contents

Advertisement

This chapter provides an example of a pre-operation Netscape Directory Server
(Directory Server) server plug-in that you can compile and run. Along with the
source code to the example, the chapter provides a Solaris Makefile that you can
use to build the plug-in.
You may not understand some of the functionality contained in the example
program; however, all the concepts contained in the example code are explained in
detail in chapters that follow.

An Example Pre-Operation Plug-In

The example shows how to create a pre-operation plug-in for the LDAP search
operation. In other words, the Directory Server will process the registered plug-in
functions before it processes each LDAP search operation. The example contains
two primary functions:
The
including the base DN of the search, the search scope, and the type of filter
used.
The
test_preop_search()
plug-in function for LDAP search operations.
These functions illustrate the data in the parameter block that is available to your
function. You can get and manipulate the parameter block data by calling various
front-end API functions.
test_preop_search()
test_preop_init()
as a
A Quick Example
function logs information about the search,
function is the initialization function that registers
SLAPI_PLUGIN_PRE_SEARCH_FN
Chapter 4
pre-operation
47

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents