Chapter 28. Functions Specific to Bind Methods

This chapter contains reference information on bind routines, including SASL.

Table 28.1. Bind Routines

Function Description
slapi_add_auth_response_control() Supplies authentication information from an LDAP bind operation.
slapi_get_supported_saslmechanisms_copy() Gets an array of the names of the supported Simple Authentication and Security Layer (SASL) methods.
slapi_get_supported_saslmechanisms_copy() Gets an array of the names of the supported Simple Authentication and Security Layer (SASL) methods.
slapi_register_supported_saslmechanism() Registers the specified Simple Authentication and Security Layer (SASL) method with the server.

28.1. slapi_add_auth_response_control()

Supplies authentication information from an LDAP bind operation based on the bind DN and passes back the actual bind identity.
Syntax

#include "slapi-plugin.h"
int slapi_add_suth_response_control ( Slapi_PBlock *pb, const char *binddn );

Parameters

This function takes the following parameter:

pb
Parameter block.
binddn
The identity of the user specified in the bind operation.
Returns

This function returns one of the following values:

  • 0 if successful.
  • -1 if an error occurs.