Getting The Entry And Checking The Credentials - Netscape DIRECTORY SERVER 6.01 - PLUG-IN Manual

Table of Contents

Advertisement

Writing a Pre-Operation Bind Plug-in
SLAPI_BIND_CREDENTIALS
by the client)
If you plan to support authentication through SASL mechanisms, you should also
get the value of the
specifying the name of the SASL mechanism to use for authentication).
Make sure to check the following:
Determine if the client is requesting to bind as an anonymous user.
If the
SLAPI_BIND_CREDENTIALS
attempting to bind anonymously.
Call
back to the client.
If the
recognize or support, call
LDAP_STRONG_AUTH_NOT_SUPPORTED
In both cases, return a non-zero value to prevent the server from calling the default
backend function for authentication.

Getting the Entry and Checking the Credentials

Get the entry for the DN specified by the
compare the credentials in the
known credentials for that entry.
By default, Directory Server 4.x uses the
credentials for an entry. The server encodes the password using the scheme
specified in the
scheme can be
By default, Directory Server 6.x uses the
credentials for an entry. The server encodes the password using the scheme
specified in the
attributes of the
be any of the following:
CLEAR
clear-password-storage-scheme
CRYPT
crypt-password-storage-scheme
98
Netscape Directory Server Plug-In Programmer's Guide • January 2002
SLAPI_BIND_SASLMECHANISM
SLAPI_BIND_METHOD
slapi_send_ldap_result()
SLAPI_BIND_METHOD
passwdhash
or
crypt
sha
nsslapd-rootpwstoragescheme
entry contained in the
cn=config
(means no encryption and can be defined using the
(means Unix crypt algorithm and can be defined using the
(a
structure containing the credentials sent
berval
parameter is
LDAP_AUTH_SIMPLE
parameter is empty or NULL, the client is
to send the LDAP result code
parameter specifies a method that you do not
slapi_send_ldap_result()
result code back to the client.
SLAPI_BIND_TARGET
SLAPI_BIND_CREDENTIALS
userpassword
directive of the
slapd.conf
or " " (for cleartext).
userpassword
or
dse.ldif
plug-in)
plug-in)
parameter (a string value
and the
LDAP_SUCCESS
to send an
parameter and
parameter against the
attribute to store the
configuration file. The
attribute to store the
passwordStorageScheme
file. The scheme can

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.01

Table of Contents