Retrieves LDAP controls from an entry.
#include <ldap.h>
int ldap_get_entry_controls (
LDAP *ld,
LDAPMessage *entry,
LDAPControl ***serverctrlsp);
(IN) Points to the handle for the LDAP session.
(IN) Points to the entry, returned by the ldap_first_entry or the ldap_next_entry function, from which to extract controls.
(OUT) Points to an array of LDAPControl structures copied out of the entry. If this parameter is set to NULL, no controls are returned.
|
0x00 |
LDAP_SUCCESS |
|
Non-zero |
Failure. For a complete list, see |
|
0x54 |
LDAP_DECODING_ERROR |
|
0x59 |
LDAP_PARAM_ERROR |
|
0x5A |
LDAP_NO_MEMORY |
Each LDAPControl structure represents one LDAP v3 server control. When the array of LDAPControl structures is no longer in use, free the memory by calling the ldap_controls_free function.