Syntax
#include "slapi-plugin.h" Slapi_PBlock *slapi_search_internal( char *base, int scope, char *filter, LDAPControl **controls, char **attrs, int attrsonly ); Parameters
#include "slapi-plugin.h" Slapi_PBlock *slapi_search_internal( char *base, int scope, char *filter, LDAPControl **controls, char **attrs, int attrsonly );
The function has the following parameters:
base
scope
filter
controls
attrs
attrsonly
Returns. A new parameter block (see "Slapi_PBlock" on page 222) with the following parameters set:
SLAPI_PLUGIN_INTOP_RESULT specifies the LDAP result code for the internal LDAP operation (for example, LDAP_SUCCESS if the operation is successful or LDAP_PARAM_ERROR if an invalid parameter is used).
SLAPI_PLUGIN_INTOP_SEARCH_ENTRIES specifies an array of entries (pointers to Slapi_Entry structures) found by the search.
SLAPI_PLUGIN_INTOP_SEARCH_REFERRALS specifies an array of referrals (strings) found by the search. Referrals are in the form of LDAP URLs.
Description. This function allows you to search the directory from a plug-in function. The arguments for this function are similar to the arguments for the standard ldap_search() function in the Netscape LDAP C SDK.
Unlike the standard LDAP search operation, no data is sent to a client:
The internal search operation does not send an LDAP result code to a client.
When the internal search operation finds a matching entry, no entry is sent to a client.
If the internal search operation finds an entry that contains LDAP v3 referrals, no referrals are sent to a client.