Directory Server calls plug-in functions in the context of a Directory Server operation, for example when a bind, add, search, modify, or delete is performed. Do not export these functions. The functions become available in the appropriate scope when registered with Directory Server at startup. This guide covers how to write such functions.
A plug-in function prototype looks like the prototype of any other locally used function. Many plug-in functions are passed a parameter block.
int prebind_auth(Slapi_PBlock * pb); /* External authentication. */
You can also use additional helper functions that are not registered with Directory Server. This guide does not cover additional helper functions, but some of the sample plug-ins delivered with the product include such functions.