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_OBJECTresult. 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
bervalstructure or to specify referral URLs when you send back either anLDAP_PARTIAL_RESULTSresult code to anLDAP V2client or anLDAP_REFERRAL result code to anLDAP V3client.