Converting A String To A Filter; Creating Complex Filters By Combining Filters; Checking Passwords - Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual

Table of Contents

Advertisement

Converting a String to a Filter

A search filter can be represented by either the datatype
string. In a parameter block for a search operation,
of the datatype
representation of that filter. In general, it is easier to specify a filter as a string than
it is to construct a filter from the type
To convert the string representation of a filter into a filter of the datatype
Slapi_Filter
When you are done working with the filter, you should free it by calling the
slapi_filter_free()

Creating Complex Filters by Combining Filters

You can use AND, OR and NOT to combine different filters to create a complex
filter. To do this, call the
The
slapi_filter_join()
When you are done using the complex filter, you should free it by calling
slapi_filter_free()
Filters of the type
(
ftype
when calling

Checking Passwords

When Directory Server 4.x stores the password for an entry in the
attribute, it encodes the password using the scheme specified in the
directive of the configuration file. The scheme can be
cleartext).
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
Slapi_Filter
, call the
slapi_str2filter()
function.
slapi_filter_join()
.
LDAP_FILTER_NOT
) is
LDAP_FILTER_NOT
slapi_filter_join()
nsslapd-rootpwstoragescheme
cn=config
(means no encryption and can be defined using the
and
SLAPI_SEARCH_STRFILTER
Slapi_Filter
function.
function.
function returns the complex filter you've created.
can have only one component. If the filter type
, you must pass a NULL value for the second filter
.
userpassword
entry contained in the
plug-in)
Checking Passwords
Slapi_Filter
SLAPI_SEARCH_FILTER
is the string
.
userpassword
passwdhash
or
or " " (for
crypt
sha
attribute to store the
or
passwordStorageScheme
file. The scheme can
dse.ldif
Chapter 5
Front-End API Functions
or as a
is a filter
69

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents