HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
0 if successful.
-1 if the filter is not one of the types listed above.
(cn=John*Q*Public)
This filter finds entries in which the value of the cn attribute starts with John, contains Q, and
ends with Public.
Call this function to get these substring values as well as the attribute type from this filter. In the
case of the example above, calling this function gets the initial substring John, the any
substring Q, and the final substring Public in addition to the attribute type cn.
See also
“slapi_filter_get_attribute_type()”
“slapi_filter_get_ava()”
“slapi_filter_get_choice()”
26.9 slapi_filter_get_type()
Applies only to filters of the type LDAP_FILTER_PRESENT. Gets the attribute type specified in
the filter.
Description Filters of the type LDAP_FILTER_PRESENT generally determine if a specified
attribute is assigned a value. For example:
(mail=*)
This filter finds entries that have a value assigned to the mail attribute.
Call this function to get the attribute type from this filter. In the case of the example above, calling
this function gets the attribute type mail.
Syntax
#include "slapi-plugin.h"
int slapi_filter_get_type( Slapi_Filter *f, char **type );
Parameters This function takes the following parameters:
Filter from which you want to get the substring values.
f
Pointer to the attribute type of the filter.
type
Returns This function returns one of the following values:
0 if successful.
-1 if the filter is not one of the types listed above.
Memory concerns The string returned in the parameter type must not be freed after calling this
function. It will be freed when the structure Slapi_Filter is freed by calling
slapi_filter_free().
See also
“slapi_filter_get_attribute_type()”
“slapi_filter_get_ava()”
“slapi_filter_get_choice()”
26.10 slapi_filter_join()
Joins the two specified filters using one of the following filter types: LDAP_FILTER_AND,
LDAP_FILTER_OR, or LDAP_FILTER_NOT. When specifying the filter type LDAP_FILTER_NOT,
the second filter should be NULL.
Description Filters of the type LDAP_FILTER_AND, LDAP_FILTER_OR, and LDAP_FILTER_NOT
generally consist of one or more other filters. For example:
240 Functions for dealing with filters