slapi_send_ldap_result()

slapi_send_ldap_result() sends an LDAP result code back to the client.

Syntax
#include "slapi-plugin.h"
void slai_send_ldap_result( Slapi_PBlock *pb, int err,
		char *matched, char *text, int nentries, 
		struct berval **urls );
Parameters
pb
A pointer to a parameter block.
err
The LDAP result code that you want sent back to the client.
matched
Used to specify the portion of the target DN that can be matched when you send back an LDAP_NO_SUCH_OBJECT result. Otherwise, you must pass NULL.
text
The error message that you want sent back to the client. If you do not want an error message that sent back, pass a NULL.
nentries
Used to specify the number of matching entries that found when you send back the result code for an LDAP search operation.
urls
Used to specify the array of the berval structure or to specify referral URLs when you send back either an LDAP_PARTIAL_RESULTS result code to an LDAP V2 client or an LDAP_REFERRAL result code to an LDAP V3 client.