Slapi_Filter_Test() - Netscape DIRECTORY SERVER 7.0 - PLUG-IN Manual

For plug-in
Table of Contents

Advertisement

Functions for Dealing with Filters
Returns
This function returns the next filter (after
.
f
Description
To iterate through all filters that make up a specified filter, use this function in
conjunction with the
Filters of the type
generally consist of one or more other filters. For example, if the filter is:
(&(ou=Accounting)(l=Sunnyvale))
the next filter after
(l=Sunnyvale)
Call the
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()

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
e
f
verify_access
372
Netscape Directory Server Plug-in Programmer's Guide • October 2004
slapi_filter_list_first()
LDAP_FILTER_AND
(ou=Accounting)
slapi_filter_list_next()
Parameter block.
Entry that you want to test.
Filter that you want to test the entry against.
If 1, verifies that the current user has access rights to search the
specified entry. If 0, bypasses any access control.
) that makes up the specified filter
fprev
function.
,
, and
LDAP_FILTER_OR
in this list is:
function to get the filters from this list.
LDAP_FILTER_NOT

Advertisement

Table of Contents
loading

This manual is also suitable for:

Netscape directory server 7.0

Table of Contents