#include <ldap.h>
int ldap_get_entry_controls( LDAP *ld, LDAPMessage *entry,
LDAPControl ***serverctrlsp );
ld |
Connection handle, which is a pointer to an |
entry |
Pointer to an |
serverctrlsp |
Pointer to an array of |
LDAP_SUCCESS if the LDAP controls were successfully retrieved. LDAP_DECODING_ERROR if an error occurred when decoding the BER-encoded message. LDAP_PARAM_ERROR if an invalid parameter was passed to the function LDAP_NO_MEMORY if memory cannot be allocated. ldap_get_entry_controls() function retrieves the LDAP v3 controls included in a directory entry in a chain of search results.
The LDAP controls are specified in an array of LDAPControl structures. (Each LDAPControl structure represents an LDAP control.)
At this point in time, the entry notification controls (which are used with persistent search controls) are the only controls that are returned with individual entries. Other controls are returned with results sent from the server. You can call ldap_parse_result() to retrieve those controls.
Last Updated: 10/01/98 17:06:23