HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
68 Parameters for filters
This section lists the parameters used for manipulating LDAP filters, including with functions
such as slapi_filter_join(). These are not pblock parameters.
“Parameters for comparison filters”
“Parameters for filter operations”
68.1 Parameters for comparison filters
The parameters listed below are filters that are used to compare a value against an attribute.
DescriptionParameter ID
AND filter. For example:
(&(ou=Accounting)(l=Sunnyvale))
LDAP_FILTER_AND
Approximation filter. For example:
(ou~=Sales)
LDAP_FILTER_APPROX
Equals filter. For example:
(ou=Accounting)
LDAP_FILTER_EQUALITY
Extensible filter. For example:
(o:dn:=Example)
LDAP_FILTER_EXTENDED
Greater than or equal to filter. For example:
(supportedLDAPVersion>=3)
LDAP_FILTER_GE
Less than or equal to filter. For example:
(supportedLDAPVersion<=2)
LDAP_FILTER_LE
OR filter. For example:
(|(ou=Accounting)(l=Sunnyvale))
LDAP_FILTER_OR
NOT filter. For example:
(!(l=Sunnyvale))
LDAP_FILTER_NOT
Presence filter. For example:
(mail=*)
LDAP_FILTER_PRESENT
Substringfilter. For example:
(ou=Account*Department)
LDAP_FILTER_SUBSTRINGS
68.2 Parameters for filter operations
The parameters listed below return status information about a filter operation. These are values
that slapi_filter_apply() and programmer-defined filter apply functions may return.
DescriptionParameter ID
Indicates success in traversing the entire filter.
SLAPI_FILTER_SCAN_NOMORE
Indicates a premature abort.
SLAPI_FILTER_SCAN_STOP
Indicates to continue scanning.
SLAPI_FILTER_SCAN_CONTINUE
68.1 Parameters for comparison filters 427