Show Table of Contents
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:
|
pb
| Parameter block. |
|
e
| Entry that you want to test. |
|
f
| Filter that you want to test the entry against. |
|
verify_access
| If 1, verifies that the current user has access rights to search the specified entry. If 0, bypasses any access control. |
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.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.