HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Returns This function returns one of the following values:
LDAP_FILTER_AND (AND filter)
For example: (&(ou=Accounting)(l=Sunnyvale))
LDAP_FILTER_OR (OR filter)
For example: (|(ou=Accounting)(l=Sunnyvale))
LDAP_FILTER_NOT (NOT filter)
For example: (!(l=Sunnyvale))
LDAP_FILTER_EQUALITY (equals filter)
For example: (ou=Accounting)
LDAP_FILTER_SUBSTRINGS (substring filter)
For example: (ou=Account*Department)
LDAP_FILTER_GE ( "greater than or equal to" filter)
For example: (supportedLDAPVersion>=3)
LDAP_FILTER_LE ( "less than or equal to" filter)
For example: (supportedLDAPVersion<=2)
LDAP_FILTER_PRESENT (presence filter)
For example: (mail=*)
LDAP_FILTER_APPROX (approximation filter)
For example: (ou~=Sales)
LDAP_FILTER_EXTENDED (extensible filter)
For example: (o:dn:=Example)
See also
“slapi_filter_get_type()”
“slapi_filter_get_attribute_type()”
“slapi_filter_get_ava()”
26.8 slapi_filter_get_subfilt()
Applies only to filters of the type LDAP_FILTER_SUBSTRINGS. Gets the substring values from
the filter.
Description Filters of the type LDAP_FILTER_SUBSTRINGS generally compare a set of substrings
against an attribute. For example:
Syntax
#include "slapi-plugin.h"
int slapi_filter_get_subfilt( Slapi_Filter *f, char **type,
char **initial, char ***any, char **final );
Parameters This function takes the following parameters:
Filter that you want to get the substring values from.
f
Pointer to the attribute type of the filter.
type
Pointer to the initial substring ( "starts with" ) of the filter.
initial
Pointer to an array of the substrings ( "contains" ) for the filter.
any
Pointer to the final substring ( "ends with" ) of the filter.
final
Returns This function returns one of the following values:
26.8 slapi_filter_get_subfilt() 239