Functions for Dealing with Filters
For example:
See Also
slapi_filter_get_type()
slapi_filter_get_attribute_type()
slapi_filter_get_ava()
slapi_filter_get_subfilt()
Applies only to filters of the type
values from the filter.
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
•
-1
Description
Filters of the type
substrings against an attribute. For example:
(cn=John*Q*Public)
366
Netscape Directory Server Plug-in Programmer's Guide • October 2004
(o:dn:=Example)
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.
if successful.
if the filter is not one of the types listed above.
LDAP_FILTER_SUBSTRINGS
LDAP_FILTER_SUBSTRINGS
generally compare a set of
. Gets the substring
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 7.0 - PLUG-IN and is the answer not in the manual?