HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Returns This function returns one of the following values:
A pointer to the Slapi_Filter structure representing the search filter.
NULL if the string cannot be converted; for example, if an empty string is specified or if the
filter syntax is incorrect.
When you are done working with this filter, you should free the Slapi_Filter structure by
calling “slapi_filter_free()”.
26.19 slapi_vattr_filter_test()
Tests a filter against a single entry.
Description This function supports the case where the filter specifies virtual attributes.
Performance for a real-attribute-only filter is the same as that for “slapi_filter_test()”.
Syntax
#include "slapi-plugin.h"
int slapi_vattr_filter_test( Slapi_PBlock *pb, Slapi_Entry *e,
struct slapi_filter *f, int verify_access);
Parameters This function takes the following parameters:
Parameter block containing information about the filter.
pb
Entry against which the filter is to be tested.
e
Filter against which the entry is to be tested.
f
Access control:
0 if access checking is not to be done; that is, bypass any access control.
1 if access checking must be done; that is, verify that the current user has access
rights to search the specified entry.
verify_access
Returns This function returns one of the following values:
0 if the filter matched.
-1 if the filter did not match.
An LDAP error code (an integer greater than zero) if an error occurs.
See also “slapi_filter_test()”
26.19 slapi_vattr_filter_test() 245