Parses event data when the ldap result code is LDAP_RES_EXTENDED. This result code Indicates that an error or exceptional situation occured and events will not be monitored. Event monitoring works with eDirectory 8.7 or higher.
#include <ldap.h> int ldap_parse_ds_event ( LDAP *ld, LDAPMessage *eventMessage, int *eventType, int *eventResult, void **eventData, int freeIt);
(IN) Points to the handle for the LDAP session.
(IN) Pointer to the LDAPMessage returned by ldap_result.
(OUT) Recieves the type of the event.
(OUT) Recieves the result associated with the event.
(OUT) a pointer to a pointer to a structure containing the data returned by this particular event. The structure is allocated by this function. The type of the structure is determined by the eventType. If the event does not have associated data the pointer will be set to NULL. When the application no longer needs the data it should free the data by calling the ldap_event_free function.
(IN) If non-zero, the function will free the memory referenced by the eventMessage parameter.
LDAP_SUCCESS |
Request was successfully sent |
[Other value] |
Non-zero codes indicate errors. See |