HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
52 Parameters for registering plug-in functions
The parameters listed in this section identify plug-in functions recognized by the server. To
register your plug-in function, set the value of the appropriate parameter to the name of your
function.
Note:
With the exception of the parameters for matching rule plug-in functions, you do not need to
get the value of any of these parameters.
Note:
Database plug-ins are not supported in current releases of Directory Server. Please use the
preoperation, postoperation, extended operation API, or a combination of them, to register
plug-in functions.
52.1 Preoperation/data validation plug-ins
The parameters listed in this section are used to register preoperation/data validation plug-in
functions.
To register your plug-in function, write an initialization function that sets the values of
thefollowing parameters to your functions.
DescriptionParameter ID
This function is called before an LDAP bind operation is completed.
SLAPI_PLUGIN_PRE_BIND_FN
Thisfunction is called before an LDAP unbind operation is
completed.
SLAPI_PLUGIN_PRE_UNBIND_FN
This function is called before an LDAP search operation is completed.
SLAPI_PLUGIN_PRE_SEARCH_FN
This function is called before an LDAP compare operation is
completed.
SLAPI_PLUGIN_PRE_COMPARE_FN
This function is called before an LDAP modify operation is
completed.
SLAPI_PLUGIN_PRE_MODIFY_FN
This function is called before an LDAP modify RDN operation is
completed.
SLAPI_PLUGIN_PRE_MODRDN_FN
This function is called before an LDAP add operation is completed.
SLAPI_PLUGIN_PRE_ADD_FN
This function is called before an LDAP delete operation is completed.
SLAPI_PLUGIN_PRE_DELETE_FN
This function is called before an entry is sent back to the client.
SLAPI_PLUGIN_PRE_ENTRY_FN
This function is called before a set of referrals is sent back to the
client.
SLAPI_PLUGIN_PRE_REFERRAL_FN
This function is called before a set of search results is sent back to
the client.
SLAPI_PLUGIN_PRE_RESULT_FN
This function is called after the server startsup. You can specify a
start function for each preoperation plug-in.
SLAPI_PLUGIN_START_FN
This function is called before the server shuts down. You can specify
a close function for each preoperation plug-in.
SLAPI_PLUGIN_CLOSE_FN
This function is for freeing a filter function or indexer function.
SLAPI_PLUGIN_DESTROY_FN
52.1 Preoperation/data validation plug-ins 387