Red Hat DIRECTORY SERVER 7.1 - PLUG-IN PROGRAMMERS Manual page 368

Table of Contents

Advertisement

Functions for Dealing with Filters
Parameters
This function takes the following parameters:
f
type
bval
Returns
This function returns one of the following values:
0
-1
Description
Filters of the type
and
LDAP_FILTER_APPROX
example:
(cn=Barbara Jensen)
This filter finds entries in which the value of the
Jensen
The attribute
the parameter
Memory Concerns
The strings within the parameters
inside the
be freed when a server entity calls
Slapi_Filter
See Also
slapi_filter_get_choice()
slapi_filter_get_type()
slapi_filter_get_attribute_type()
366
Red Hat Directory Server Plug-in Programmer's Guide • May 2005
Filter from which you want to get the attribute and value.
Pointer to the attribute type of the filter.
Pointer to the address of the berval structure containing the
value of the filter.
if successful.
if the filter is not one of the types listed above.
LDAP_FILTER_EQUALITY
.
is returned in the parameter type, and the value is returned in
type
.
bval
and therefore should not be freed after usage. They will
Slapi_Filter
structure.
,
LDAP_FILTER_GE
generally compare a value against an attribute. For
and
type
bval
slapi_filter_free()
,
LDAP_FILTER_LE
attribute is equal to
cn
are direct pointers to memory
after usage of the
,
Barbara

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 7.1

Table of Contents