HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
28 Functions specific to bind methods
This chapter contains reference information on bind routines, including SASL.
Table 28-1 Bind routines
DescriptionFunction
Supplies authentication information from an LDAP bind operation.“slapi_add_auth_response_control()”
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_get_supported_saslmechanisms_copy()
Registers the specified Simple Authentication and Security Layer (SASL)
method with the server.
“slapi_register_supported_saslmechanism()”
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:
Parameter block.
pb
The identity of the user specified in the bind operation.
binddn
Returns This function returns one of the following values:
0 If successful.
-1 If an error occurs.
28.2 slapi_get_supported_saslmechanisms_copy()
Gets an array of the names of the supported Simple Authentication and Security Layer (SASL)
mechanisms. You can register new SASL mechanisms by calling the
slapi_vattr_values_free() function.
Syntax
#include "slapi-plugin.h"
char ** slapi_get_supported_saslmechanisms_copy( void );
Returns This function returns a pointer to an array of the names of SASL mechanisms supported
by the server.
28.3 slapi_register_supported_saslmechanism()
Registers the specified Simple Authentication and Security Layer (SASL) mechanism with the
server.
Syntax
#include "slapi-plugin.h"
void slapi_register_supported_saslmechanism( char *mechanism );
28.1 slapi_add_auth_response_control() 249