Working with Search Filters
Table 5-4
Filter Type
LDAP_FILTER_GE
LDAP_FILTER_LE
LDAP_FILTER_PRESENT
LDAP_FILTER_APPROX
Getting the Search Criteria
To get the search criteria specified by a search filter, call one of the following
functions:
•
If the filter type is
LDAP_FILTER_LE
value used in the filter by calling
•
If the filter type is
the filter is searching for by calling the
•
If the filter type is
that the filter searches for by calling
•
To get the components of a complex filter of the type
LDAP_FILTER_OR
and
Both of these functions will return either a filter component of the complex
filter or a NULL value, according to the following:
NOTE
68
Netscape Directory Server Plug-In Programmer's Guide • December 2003
Types of Filters (Continued)
LDAP_FILTER_EQUALITY
, or
LDAP_FILTER_APPROX
LDAP_FILTER_PRESENT
LDAP_FILTER_SUBSTRINGS
, or
LDAP_FILTER_NOT
slapi_filter_list_next()
If
slapi_list_first()
type
LDAP_FILTER_AND
If
slapi_list_next()
call is the last component in the complex filter.
You do not need to free the values returned by the
slapi_filter_get_ava()
slapi_filter_get_subfilt()
Description
The search should find entries that contain a value
greater than or equal to the specified attribute value.
The search should find entries that contain a value less
than or equal to the specified attribute value.
The search should find entries that contain the
specified attribute.
The search should find entries that contain a value
approximately matching the specified attribute value.
,
LDAP_FILTER_GE
, you can get the attribute and
slapi_filter_get_ava()
, you can get the attribute type that
slapi_filter_get_type()
, you can get the attribute type
slapi_filter_get_subfilt()
, call the
functions.
returns a NULL, the complex filter is not of the
,
, or
LDAP_FILTER_OR
returns a NULL, the component returned by the
,
slapi_filter_get_type()
functions.
,
.
function.
.
LDAP_FILTER_AND
slapi_filter_list_first()
.
LDAP_FILTER_NOT
, and
,
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - PLUG-IN and is the answer not in the manual?
Questions and answers