HP-UX Directory Server 8.1 plug-in reference

Table Of Contents
55 Parameters for the search function
The following parameters are used with the search function:
“Parameters passed to the search function”
“Parameters for executing the search”
“Parameters for the search results”
55.1 Parameters passed to the search function
The following table lists the parameters in the parameter block passed to the database search
function. If you are writing a preoperation, database, or postoperation search function, you can
get these values by calling the function.
DescriptionData typeParameter ID
DN of the base entry in the search operation; the
starting point of the search.
char *SLAPI_SEARCH_TARGET
The original DN sent by the client (this DN is
normalized by SLAPI_SEARCH_TARGET); read-only
parameter.
char *SLAPI_ORIGINAL_TARGET_DN
The scope of the search. The scope can be one of the
following values:
LDAP_SCOPE_BASE
LDAP_SCOPE_ONELEVEL
LDAP_SCOPE_SUBTREE
intSLAPI_SEARCH_SCOPE
Method for handling aliases in a search. This method
can be one of the following values:
LDAP_DEREF_NEVER
LDAP_DEREF_SEARCHING
LDAP_DEREF_FINDING
LDAP_DEREF_ALWAYS
intSLAPI_SEARCH_DEREF
Maximum number of entries to return in the search
results.
intSLAPI_SEARCH_SIZELIMIT
Maximum amount of time (in seconds) allowed for
the search operation.
intSLAPI_SEARCH_TIMELIMIT
Structure (an opaque data structure) representing
the filter to be used in the search.
Slapi_Filter *SLAPI_SEARCH_FILTER
String representation of the filter to be used in the
search.
char *SLAPI_SEARCH_STRFILTER
Array of attribute types to be returned in the search
results.
char **SLAPI_SEARCH_ATTRS
Specifies whether the search results return attribute
types only or attribute types and values. 0 means
return both attributes and values; 1 means return
attribute types only.
intSLAPI_SEARCH_ATTRSONLY
55.1 Parameters passed to the search function 401