HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
0 if the entry matched the filter or if the specified filter is NULL.
-1 if the filter type is unknown or if the entry does not match the filter.
A positive value (an LDAP error code) if an error occurred or if the current user does not
have access rights to search the specified entry.
See also
“slapi_filter_test_simple()”
“slapi_filter_test()”
26.16 slapi_filter_test_simple()
Description This function allows you to check if entry e matches filter f.
Syntax
#include "slapi-plugin.h"
int slapi_filter_test_simple( Slapi_Entry *e, Slapi_Filter *f);
Parameters This function takes the following parameters:
Entry that you wish to test.
e
Filter to match the entry against.
f
Returns This function returns one of the following values:
0 if the entry matched the filter or if the specified filter is NULL.
-1 if the filter type is unknown or if the entry does not match the filter.
A positive value (an LDAP error code) if an error occurred.
See also
“slapi_filter_test()”
“slapi_filter_test_ext()”
26.17 slapi_find_matching_paren()
Finds the matching right parentheses in a string, corresponding to the left parenthesis to which
the string currently points.
Syntax
#include "slapi-plugin.h"
char *slapi_find_matching_paren( const char *str )
Parameters This function takes the following parameter:
String containing the parentheses.
str
Returns This function returns a pointer to the matching right parenthesis in the specified string.
26.18 slapi_str2filter()
Converts a string description of a search filter into a filter of the Slapi_Filter type.
Syntax
#include "slapi-plugin.h"
Slapi_Filter *slapi_str2filter( char *str );
Parameters This function takes the following parameter:
String description of a search filter.
str
244 Functions for dealing with filters