Functions for Dealing with Filters
Returns
This function returns a pointer to the matching right parenthesis in the specified
string.
slapi_str2filter()
Converts a string description of a search filter into a filter of the
type.
Syntax
#include "slapi-plugin.h"
Slapi_Filter *slapi_str2filter( char *str );
Parameters
This function takes the following parameters:
str
Returns
This function returns one of the following values:
•
A pointer to the
•
NULL
specified or if the filter syntax is incorrect).
When you are done working with this filter, you should free the
structure by calling
slapi_vattr_filter_test()
Tests a filter against a single entry.
Syntax
#include "slapi-plugin.h"
int slapi_vattr_filter_test( Slapi_PBlock *pb, Slapi_Entry *e,
struct slapi_filter *f, int verify_access);
322
Netscape Directory Server Plug-In Programmer's Guide • May 2002
String description of a search filter.
Slapi_Filter
if the string cannot be converted (for example, if an empty string is
slapi_filter_free()
structure representing the search filter.
.
Slapi_Filter
Slapi_Filter
Need help?
Do you have a question about the NETSCAPE DIRECTORY SERVER 6.02 - PLUG-IN and is the answer not in the manual?
Questions and answers