Netscape DIRECTORY SERVER 6.2 - PLUG-IN Manual page 358

Table of Contents

Advertisement

Functions for Dealing with Filters
slapi_filter_join()
Joins the two specified filters using one of the following filter types:
LDAP_FILTER_AND
filter type
Syntax
#include "slapi-plugin.h"
Slapi_Filter *slapi_filter_join( int ftype,
Slapi_Filter *f1, Slapi_Filter *f2 );
Parameters
This function takes the following parameters:
ftype
f1
f2
Returns
This function returns the new filter constructed from the other two filters.
Description
Filters of the type
generally consist of one or more other filters. For example:
(&(ou=Accounting)(l=Sunnyvale))
(|(ou=Accounting)(l=Sunnyvale))
(!(l=Sunnyvale))
Each of these examples contain one or more
Call the
LDAP_FILTER_AND
Memory Concerns
The
f1
resulting filter will have references pointing to these two filters.
358
Netscape Directory Server Plug-In Programmer's Guide • December 2003
,
LDAP_FILTER_OR
LDAP_FILTER_NOT
Type of composite filter you want to create.
First filter that you want to join.
Second filter that you want to join. If ftype is
LDAP_FILTER_NOT, specify NULL for this argument.
LDAP_FILTER_AND
slapi_filter_join()
,
LDAP_FILTER_OR
and
filters are neither copied nor freed during the join process, but the
f2
, or
LDAP_FILTER_NOT
, the second filter should be
,
LDAP_FILTER_OR
LDAP_FILTER_EQUALITY
function to create a new filter of the type
, or
LDAP_FILTER_NOT
. (When specifying the
.)
NULL
, and
LDAP_FILTER_NOT
filters.
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Directory server 6.2

Table of Contents