How Your Pre-Operation Bind Plug-In Function Can Authenticate LDAP
Figure 8-2
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
Be sure to check this source file for an example of a pre-operation
NOTE
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
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.1 - PLUG-IN and is the answer not in the manual?
Questions and answers