Using Sasl With An Ldap Client - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Using SASL with an LDAP Client

Check this source file for an example of a pre-operation plug-in function that
handles authentication:
<server_root>/plugins/slapd/slapi/examples/testbind.c
Using SASL with an LDAP Client
If you intend to use SASL as the method for authenticating clients, you need to
enable your LDAP clients to use SASL.
In your client, call the
request authentication using SASL. To parse credentials from an asynchronous
SASL bind operation, call
are part of the Netscape LDAP C SDK 3.0.
The syntax for these functions are listed below:
LDAP_API(int) LDAP_CALL ldap_sasl_bind( LDAP *ld, const char
*dn,
*msgidp );
LDAP_API(int) LDAP_CALL ldap_sasl_bind_s( LDAP *ld, const char
*dn,
The parameters are described below:
ld
containing information about the connection to the LDAP server.
dn
authenticate.
mechanism
authentication (the mechanism that you register in the initialization function
for your server plug-in).
cred
want to use for authentication.
116
Netscape Directory Server Plug-in Programmer's Guide • October 2004
nsslapd-pluginType: preoperation
nsslapd-pluginEnabled: on
nsslapd-plugin-depends-on-type: database
nsslapd-pluginId: test-bind
ldap_sasl_bind()
ldap_parse_sasl_bind_result()
const char *mechanism, struct berval *cred,
LDAPControl **serverctrls, LDAPControl **clientctrls, int
const char *mechanism, struct berval *cred,
LDAPControl **serverctrls, LDAPControl **clientctrls,
struct berval **servercredp );
is the connection handle, which is a pointer to the LDAP structure
is the distinguished name (DN) as which your client is attempting to
is the name of the SASL mechanism that you want to use for
is a pointer to the
or
ldap_sasl_bind_s()
structure containing the credentials that you
berval
function to
. These functions

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents