Functions for Dealing with Filters
Syntax
#include "slapi-plugin.h"
int slapi_filter_get_subfilt( Slapi_Filter *f, char **type,
char **initial, char ***any, char **final );
Parameters
This function takes the following parameters:
f
type
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()
356
Netscape Directory Server Plug-In Programmer's Guide • December 2003
Filter that you want to get the substring values from.
Pointer to the attribute type of the filter.
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
,
John
initial
in addition to
Public
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.2 - PLUG-IN and is the answer not in the manual?
Questions and answers