Netscape DIRECTORY SERVER 6.1 - PLUG-IN Manual page 354

Table of Contents

Advertisement

Functions for Dealing with Filters
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()
slapi_filter_get_choice()
Gets the type of the specified filter (for example,
Syntax
#include "slapi-plugin.h"
int slapi_filter_get_choice( Slapi_Filter *f );
Parameters
This function takes the following parameters:
f
Returns
This function returns one of the following values:
LDAP_FILTER_AND
354
Netscape Directory Server Plug-In Programmer's Guide • August 2002
LDAP_FILTER_EQUALITY
generally compare a value against an attribute. For
.
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.
Filter that you want to get type of.
(AND filter)
,
LDAP_FILTER_GE
attribute is equal to
cn
and
are direct pointers to memory
type
bval
slapi_filter_free()
LDAP_FILTER_EQUALITY
,
,
LDAP_FILTER_LE
Barbara
after usage of the
).

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.1

Table of Contents