Defining Your Authentication Function; Getting And Checking The Bind Parameters - Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual

Table of Contents

Advertisement

Figure 8-2
How Your Pre-Operation Bind Plug-In Function Can Authenticate LDAP
Clients

Defining Your Authentication Function

The following sections cover guidelines that you can follow when defining your
authentication function:

Getting and Checking the Bind Parameters

Getting the Entry and Checking the Credentials
What to Do If Authentication Fails
What to Do If Authentication Succeeds
NOTE
Be sure to 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
Getting and Checking the Bind Parameters
Call the
slapi_pblock_get()
parameters:
SLAPI_BIND_TARGET
attempting to authenticate as)
SLAPI_BIND_METHOD
such as
LDAP_AUTH_SIMPLE
function to get the values of the following
(a string value specifying the DN that the client is
(an integer value specifying the authentication method,
or
LDAP_AUTH_SASL
Chapter 8
Writing a Pre-Operation Bind Plug-in
)
Defining Functions for Authentication
97

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents