slapi_send_ldap_search_entry()
slapi_send_ldap_search_entry() sends an
entry found by a search back to the client.
- Syntax
#include "slapi-plugin.h" int slapi_send_ldap_search_entry( Slapi_PBlock *pb, Slapi_Entry *e, LDAPControl **ectrls, char **attrs, int attrsonly );- Parameters
-
- pb
- The parameter block.
- e
- The pointer to the
Slapi_Entrystructure that represents the entry that you want to send back to the client. - ectrls
- The pointer to the array of
LDAPControlstructures that represent the controls that are associated with the search request. - attrs
- Attribute types that are specified in the LDAP search request.
- attrsonly
- Specifies whether the attribute values must be sent back with
the result.
- If set to 0, the values are included.
- If set to 1, the values are not included.
- Returns
- If successful 0 is returned, 1 is returned if the entry is not sent (for example, if access control did not allow it to be sent), or a -1 is returned if an error occurs.