Chapter 54. Parameters for the Bind Function

The following table lists the parameters in the parameter block passed to the database bind function. If you are writing a pre-operation, database, or post-operation bind function, you can get these values by calling the function.
Parameter ID Data Type Description
SLAPI_BIND_TARGET char * DN of the entry to which to bind.
SLAPI_BIND_METHOD int Authentication method used; for example, LDAP_AUTH_SIMPLE or LDAP_AUTH_SASL.
SLAPI_BIND_CREDENTIALS struct berval * Credentials from the bind request.
SLAPI_BIND_RET_SASLCREDS struct berval * Simple Authentication and Security Layer (SASL) credentials that you want to send back to the client. Set this before calling .
SLAPI_BIND_SASLMECHANISM char * Simple Authentication and Security Layer (SASL) mechanism that is used (for example, LDAP_SASL_EXTERNAL).