Table 5-3
Front-End Functions for Manipulating Filters (Continued)
Function
slapi_filter_free()
Determining If an Entry Matches a Filter
After retrieving a filter from the
parameter block, you can call the
entries in your database match the filter.
Getting the Filter Type
To determine the type of filter you are using, call
This function returns the filter type, which can be any one of the following values:
Table 5-4
Types of Filters
Filter Type
LDAP_FILTER_AND
LDAP_FILTER_OR
LDAP_FILTER_NOT
LDAP_FILTER_EQUALITY
LDAP_FILTER_SUBSTRINGS
LDAP_FILTER_GE
LDAP_FILTER_LE
LDAP_FILTER_PRESENT
LDAP_FILTER_APPROX
Description
Free a filter from memory.
SLAPI_SEARCH_FILTER
slapi_filter_test()
slapi_filter_get_choice()
Description
The search should find entries matching all filters that
are specified in this complex filter.
The search should find entries matching any filter
specified in this complex filter.
The search should find entries not matching the
specified filter.
The search should find entries that contain a value
equal to the specified attribute value.
The search should find entries that contain a value
matching the specified substrings.
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.
Chapter 5
Working with Search Filters
parameter of the
function to determine if
Front-End API Functions
.
77
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