Sun Java System Directory Server Enterprise Edition 6.1 Developer's Guide

slapi_vattr_filter_test()

Test a filter against an entry that may contain virtual attributes.

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:

pb

Parameter block containing the search request

e

Candidate entry

f

Filter to check

verify_access

1 to verify access to the entry before checking, 0 otherwise

Description

This function checks whether the candidate entry e matches the filter f. It does not support LDAP v3 extensible match filters.

Returns

This functions returns 0 if the filter matches, or if the filter is NULL. Otherwise, it returns -1.