Functions for Dealing with Filters
354
Netscape Directory Server Plug-In Programmer’s Guide • December 2003
Description
Filters of the type
LDAP_FILTER_EQUALITY
,
LDAP_FILTER_GE
,
LDAP_FILTER_LE
,
and
LDAP_FILTER_APPROX
generally compare a value against an attribute. For
example:
(cn=Barbara Jensen)
This filter finds entries in which the value of the
cn
attribute is equal to
Barbara
Jensen
.
The attribute
type
is returned in the parameter type, and the value is returned in
the parameter
bval
.
Memory Concerns
The strings within the parameters
type
and
bval
are direct pointers to memory
inside the
Slapi_Filter
, and therefore should not be freed after usage. They will
be freed when a server entity calls
slapi_filter_free()
after usage of the
Slapi_Filter
structure.
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,
LDAP_FILTER_EQUALITY
).
Syntax
#include “slapi-plugin.h”
int slapi_filter_get_choice( Slapi_Filter *f );
Parameters
This function takes the following parameters:
Returns
This function returns one of the following values:
•
LDAP_FILTER_AND
(AND filter)
f
Filter that you want to get type of.
Содержание NETSCAPE DIRECTORY SERVER 6.2 - GATEWAY CUSTOMIZATION
Страница 1: ...Plug In Programmer s Guide Netscape Directory Server Version6 2 December 2003...
Страница 18: ...18 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 26: ...Types of Directory Server Plug Ins 26 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 38: ...Compiling a Directory Server Plug In 38 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 54: ...An Example Pre Operation Plug In 54 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 56: ...56 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 90: ...Processing an LDAP Abandon Operation 90 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 110: ...Using SASL with an LDAP Client 110 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 112: ...112 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 122: ...Specifying Start and Close Functions 122 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 168: ...Plug In API Reference 168 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 170: ...170 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 214: ...Summary of Data Types and Structures 214 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 554: ...Functions for Registering Additional Plug Ins 554 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 596: ...Parameters for the Virtual Attribute Service 596 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 600: ...600 Netscape Directory Server Plug In Programmer s Guide December 2003...
Страница 612: ...612 Netscape Directory Server Plug In Programmer s Guide December 2003...