Registers the specified Simple Authentication and Security Layer (SASL) mechanism with the server.
#include "slapi-plugin.h" void slapi_register_supported_saslmechanism( char *mechanism );
This function takes the following parameter:
String identifying the SASL mechanism to both the server and to clients requesting the mechanism during a SASL bind
Use this function in the plug-in initialization function to register the name of a SASL mechanism supported by the plug-in. The preoperation function handling the SASL bind can then check the SASL bind mechanism name provided by the client to determine whether to attempt to handle the bind.
The sample $INSTALL_DIR/plugins/slapd/slapi/examples/testsaslbind.c plug-in demonstrates the use of this function.