Working with Search Filters
You can use the following front-end function to normalize and convert the case of a
DN:
•
Use
•
Use
•
Use
characters in the DN to lowercase.
NOTE
Working with Search Filters
When a client requests an LDAP search operation, the front-end passes the search
filter to the back-end as part of the parameter block. (The filter is passed through
the
SLAPI_SEARCH_FILTER
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()
66
Netscape Directory Server Plug-In Programmer's Guide • May 2002
slapi_dn_normalize()
slapi_dn_ignore_case()
slapi_dn_normalize_case()
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()
parameter. A string representation of the filter is also
SLAPI_SEARCH_STRFILTER
Front-End Functions for Manipulating Filters
normalize a DN.
to convert all characters in a DN to lowercase.
to both normalize the DN and convert all
to make a copy of the DN.
parameter.)
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)
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.02 - PLUG-IN and is the answer not in the manual?
Questions and answers