HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
the next filter after (ou=Accounting) in this list is:
(l=Sunnyvale)
Call the slapi_filter_list_next() function to get the filters from this list.
Memory concerns No duplication of the filter is done, so this filter should not be freed
independently of the original filter.
See also “slapi_filter_list_first()”
26.14 slapi_filter_test()
Determines if the specified entry matches a particular filter.
Syntax
#include "slapi-plugin.h"
int slapi_filter_test( Slapi_PBlock *pb, Slapi_Entry *e,
Slapi_Filter *f, int verify_access );
Parameters This function takes the following parameters:
Parameter block.
pb
Entry that you want to test.
e
Filter that you want to test the entry against.
f
If 1, verifies that the current user has access rights to search the specified entry. If 0,
bypasses any access control.
verify_access
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.
A positive value (an LDAP error code) if an error occurred.
See also
“slapi_filter_test_simple()”
“slapi_filter_test_ext()”
26.15 slapi_filter_test_ext()
Determines if an entry matches a given filter.
Description This function allows you to determine if an entry matches a given filter and/or that
the current user has the permission to access the entry.
Syntax
#include "slapi-plugin.h"
int slapi_filter_test_ext( Slapi_PBlock *pb, Slapi_Entry *e,
Slapi_Filter *f,int verify_access, int only_test_access)
Parameters This function takes the following parameters:
pblock from which the user is extracted.pb
The entry on which filter matching must be verified.
e
The filter used for filter matching.
f
0 when access checking is not to be done.1 when access checking must be done.verify_access
0 when filter matching must be done.1 when filter matching must not be done.only_test_access
Returns This function returns one of the following values:
26.14 slapi_filter_test() 243