The callback takes the following parameters.
Table 15–12 send_ldap_result_fn_ptr_t Parameters
Parameter |
Description |
---|---|
pb |
Current parameter block for the operation. |
err |
Result code. |
matched |
When sending back an LDAP_NO_SUCH_OBJECT result code, use this argument to specify the portion of the target DN that could be matched. (Pass NULL in other situations.) |
text |
Error message that you want sent back to the client. (Pass NULL if you do not want an error message sent back.) |
nentries |
When sending back the result code for an LDAP search operation, use this argument to specify the number of matching entries found. |
urls |
When sending back an LDAP_PARTIAL_RESULTS result code to an LDAP v2 client or an LDAP_REFERRAL result code to an LDAP v3 client, use this argument to specify the array of berval structures containing the referral URLs. (Pass NULL in other situations.) |