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:

e
Entry that you wish to test.
f
Filter to match the entry against.
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.