40.3. slapi_send_ldap_search_entry()
Call slapi_send_ldap_search_entry() to send an entry found by a search back to the client.
SLAPI_SEARCH_ATTRS parameter in the parameter block.
- Pass
0for this parameter if you want to send both the attribute types and values to the client. - Pass
1for this parameter if you want to send only the attribute types (not the attribute values) to the client.
SLAPI_SEARCH_ATTRSONLY parameter in the parameter block.
SLAPI_PLUGIN_DB_ENTRY_FN parameter in the parameter block to the name of your function.
#include "slapi-plugin.h" int slapi_send_ldap_search_entry( Slapi_PBlock *pb, Slapi_Entry *e, LDAPControl **ectrls, char **attrs, int attrsonly );
This function takes the following parameters:
|
pb
| Parameter block. |
|
e
| Pointer to the Section 14.22, “Slapi_Entry” structure representing the entry that you want to send back to the client. |
|
ectrls
| Pointer to the array of LDAPControl structures representing the control associated with the search request. |
|
attrs
| Attribute types specified in the LDAP search request |
|
attrsonly
| Specifies whether the attribute values should be sent back with the result.
|
This function returns one of the following values:
- 0 if successful.
- 1 if the entry is not sent; for example, if access control did not allow it to be sent.
- -1 if an error occurs.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.