HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Figure 6-1 Calling preoperation and postoperation plug-in functions
6.2 Types of preoperation and postoperation functions
Preoperation and postoperation functions are specified in a parameter block that you can set on
server startup. Each function corresponds to an ID in the parameter block. In your initialization
function, you can call the “slapi_pblock_set()” function to specify the name of your function that
corresponds to the preoperation or postoperation function. For more information on the parameter
block, refer to “Getting data from the parameter block”.
6.2.1 Types of preoperation functions
The following table lists the Directory Server preoperation functions and their purpose.
Table 6-1 Functions called before the Directory Server executes an operation
Further informationDescriptionID in parameter nlock
“Processing an LDAP bind
operation”.
Specifies the function called before the
Directory Server executes an LDAP bind
operation.
SLAPI_PLUGIN_PRE_BIND_FN
“Processing an LDAP unbind
operation”.
Specifies the function called before the
Directory Server executes an LDAP
unbind operation.
SLAPI_PLUGIN_PRE_UNBIND_FN
58 Writing pre- and postoperation plug-ins