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)
•
SLAPI_BIND_METHOD
method, such as
function to get the values of the following
— A string value specifying the DN as which the client is
— An integer value specifying the authentication
or
LDAP_AUTH_SIMPLE
Chapter 8
Writing a Pre-Operation Bind Plug-in
.
LDAP_AUTH_SASL
Defining Functions for Authentication
107
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?
Questions and answers