Determining If An Entry Matches A Filter; Getting The Filter Type - Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual

Table of Contents

Advertisement

Front-End Functions for Manipulating Filters (Continued)
Table 5-3
Function
slapi_str2filter()
slapi_filter_join()
slapi_filter_list_first(),
slapi_filter_list_next()
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
Description
Convert a string representation of a filter to a
filter of the datatype Slapi_Filter
Construct a new LDAP_FILTER_AND,
LDAP_FILTER_OR, or LDAP_FILTER_NOT
filter from other filters
Get the components of a filter (only applicable
to LDAP_FILTER_AND, LDAP_FILTER_OR,
and LDAP_FILTER_NOT searches)
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.
Chapter 5
Working with Search Filters
parameter of the
function to determine if
Front-End API Functions
.
67

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents