7.3. Processing an LDAP Unbind Operation

When the Directory Server receives an LDAP unbind request from a client, the frontend calls the nunbind function for each backend. No operation-specific parameters are placed in the parameter block that is passed to the unbind function.
In the parameter block, the following parameters specify plug-in functions that are called in the process of executing an unbind operation:
  • The SLAPI_PLUGIN_PRE_UNBIND_FN parameter specifies the pre-operation unbind function.
  • The SLAPI_PLUGIN_POST_UNBIND_FN parameter specifies the post-operation unbind function.
Call the slapi_pblock_set() function to set these parameters to the names of your functions.
Your plug-in functions should return 0 if successful. If the pre-operation function returns a non-zero value, the post-operation unbind function is never called.