HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
Call this function:To:
“slapi_entry_set_dn()”Set the DN of an entry.
“slapi_entry_set_sdn()”
Set the Slapi_DN value in an entry.
“slapi_entry_set_uniqueid()”Set the unique ID in an entry.
“slapi_entry_size()”Return the size of an entry.
“slapi_is_rootdse()”Determine if an entry is the root DSE.
“slapi_str2entry()”Convert an LDIF description into an entry.
See also Slapi_Attr
14.23 Slapi_Filter
Represents a search filter.
Syntax
#include "slapi-plugin.h"
typedef struct slapi_filter Slapi_Filter;
Description Slapi_Filter is the data type for an opaque structure that represents an search
filter. (For more information on search filters, see “Working with entries, attributes, and values”.)
The following table summarizes the front end API functions that you can call to work with filters.
Call this function:To:
“slapi_filter_test()”Determine if an entry matches a filter's criteria.
“slapi_filter_get_choice()”Get the filter type.
“slapi_filter_get_ava()”Get the attribute type and value used for comparison in a
filter (only applicable to LDAP_FILTER_EQUALITY,
LDAP_FILTER_GE, LDAP_FILTER_LE, and
LDAP_FILTER_APPROX searches).
“slapi_filter_get_type()”Get the type of attribute that the filter is searching for (only
applicable to LDAP_FILTER_PRESENT searches).
“slapi_filter_get_subfilt()”Get the substring pattern used for the filter (applicable only
to LDAP_FILTER_SUBSTRING searches).
“slapi_str2filter()”Convert a string representation of a filter to a filter of the
data type Slapi_Filter.
“slapi_filter_join()”
Construct a new LDAP_FILTER_AND, LDAP_FILTER_OR,
or LDAP_FILTER_NOT filter from other filters.
“slapi_filter_list_first()”Get the components of a filter (only applicable to
LDAP_FILTER_AND, LDAP_FILTER_OR, and
LDAP_FILTER_NOT searches).
“slapi_filter_free()”Free a filter from memory.
14.24 Slapi_MatchingRuleEntry
Slapi_MatchingRuleEntry is the data type for an opaque structure that represents a matching
rule.
The matching rule definition can be specified as a dynamic declaration using functions such as
slapi_matchingrule_new() or slapi_matchingrule_set().
Alternatively, the matching rule definition can also be specified as a static declaration. For
example:
14.23 Slapi_Filter 133