Chapter 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 pre-operation, post-operation, and/or extended operation API to register plug-in functions.

52.1. Pre-Operation/Data Validation Plug-ins

The parameters listed in this section are used to register pre-operation/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.
Parameter ID Description
SLAPI_PLUGIN_PRE_BIND_FN This function is called before an LDAP bind operation is completed.
SLAPI_PLUGIN_PRE_UNBIND_FN Thisfunction is called before an LDAP unbind operation is completed.
SLAPI_PLUGIN_PRE_SEARCH_FN This function is called before an LDAP search operation is completed.
SLAPI_PLUGIN_PRE_COMPARE_FN This function is called before an LDAP compare operation is completed.
SLAPI_PLUGIN_PRE_MODIFY_FN This function is called before an LDAP modify operation is completed.
SLAPI_PLUGIN_PRE_MODRDN_FN This function is called before an LDAP modify RDN operation is completed.
SLAPI_PLUGIN_PRE_ADD_FN This function is called before an LDAP add operation is completed.
SLAPI_PLUGIN_PRE_DELETE_FN This function is called before an LDAP delete operation is completed.
SLAPI_PLUGIN_PRE_ENTRY_FN This function is called before an entry is sent back to the client.
SLAPI_PLUGIN_PRE_REFERRAL_FN This function is called before a set of referrals is sent back to the client.
SLAPI_PLUGIN_PRE_RESULT_FN This function is called before a set of search results is sent back to the client.
SLAPI_PLUGIN_START_FN This function is called after the server startsup. You can specify a start function for each pre-operation plug-in.
SLAPI_PLUGIN_CLOSE_FN This function is called before the server shuts down. You can specify a close function for each pre-operation plug-in.
SLAPI_PLUGIN_DESTROY_FN This function is for freeing a filter function or indexer function.
SLAPI_PLUGIN_INTERNAL_PRE_ADD_FN This function is called before an internal LDAP add operation is completed.
SLAPI_PLUGIN_INTERNAL_PRE_DELETE_FN This function is called before an internal LDAP delete operation is completed.
SLAPI_PLUGIN_INTERNAL_PRE_MODIFY_FN This function is called before an internal LDAP modify operation is completed.
SLAPI_PLUGIN_INTERNAL_PRE_MODRDN_FN This function is called before an internal LDAP modify RDN operation is completed.