Sun Directory Server Enterprise Edition 7.0 Developer's Guide

slapi_filter_test_ext()

Determines if an entry matches a given filter.

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:

pb

Parameter block from which the user is extracted

e

The entry on which filter matching must be verified.

f

The filter used for filter matching.

verify_access

0 when access checking is not to be done.

1 when access checking must be done.

only_test_access

0 when filter matching must be done.

1 when filter matching must not be done.

Returns

This function returns one of the following values:

Description

This function allows you to determine if an entry matches a given filter, or that the current user has the permission to access the entry.

See Also

slapi_filter_test_simple()

slapi_filter_test()