Netscape DIRECTORY SERVER 6.02 - PLUG-IN Manual page 314

Table of Contents

Advertisement

Functions for Dealing with Filters
initial
any
final
Returns
This function returns one of the following values:
0 if successful.
-1 if the filter is not one of the types listed above.
Description
Filters of the type
against an attribute. For example:
(cn=John*Q*Public)
This filter finds entries in which the value of the
contains
Call this function to get these substring values as well as the attribute type from
this filter. In the case of the example above, calling this function gets the
substring
the attribute type
See Also
slapi_filter_get_attribute_type()
slapi_filter_get_ava()
slapi_filter_get_choice()
slapi_filter_get_type()
(Applies only to filters of the type
specified in the filter.
Syntax
#include "slapi-plugin.h"
int slapi_filter_get_type( Slapi_Filter *f, char **type );
314
Netscape Directory Server Plug-In Programmer's Guide • May 2002
Pointer to the initial substring ("starts with") of the filter.
Pointer to an array of the substrings ("contains") for the filter.
Pointer to the final substring ("ends with") of the filter.
LDAP_FILTER_SUBSTRINGS
, and ends with
Q
Public
, the
substring
John
any
.
cn
generally compare a set of substrings
attribute starts with
cn
.
, and the
substring
Q
final
LDAP_FILTER_PRESENT
,
John
initial
in addition to
Public
) Gets the attribute type

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.02

Table of Contents