Working With Search Filters - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Working with Search Filters

NOTE
Working with Search Filters
When a client requests an LDAP
search filter to the backend as part of the parameter block. (The filter is passed
through the
filter is also available in the
To manipulate search filters, call the following front-end routines:
Table 5-3
Function
slapi_filter_test()
slapi_filter_get_choice()
slapi_filter_get_ava()
slapi_filter_get_type()
slapi_filter_get_subfilt()
slapi_str2filter()
slapi_filter_join()
slapi_filter_list_first(),
slapi_filter_list_next()
76
Netscape Directory Server Plug-in Programmer's Guide • October 2004
These functions operate on the actual DN specified in the
argument, not a copy of the DN. If you want to modify a copy of the
DN, call
slapi_ch_strdup()
SLAPI_SEARCH_FILTER
SLAPI_SEARCH_STRFILTER
Front-End Functions for Manipulating Filters
to make a copy of the DN.
operation, the front-end passes the
search
parameter. A string representation of the
Description
Determine if an entry matches a filter's criteria.
Get the filter type.
Get the attribute type and value used for
comparison in an attribute-value assertion
filter (only applicable to the following searches:
LDAP_FILTER_EQUALITY,
LDAP_FILTER_GE, LDAP_FILTER_LE, and
LDAP_FILTER_APPROX).
Get the type of attribute that the filter is
searching for (only applicable to
LDAP_FILTER_PRESENT searches).
Get the substring pattern used for the filter
(applicable only to
LDAP_FILTER_SUBSTRING searches).
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).
parameter.)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents