Retrieves intermediate data from an LDAPMessage that contains data from an extended operation.
#include <ldap.h>
int ldap_parse_intermediate (
LDAP *ld,
LDAPMessage *res,
char **retoidp,
struct berval **retdatap,
int freeit);
(IN) Points to the handle for the LDAP session.
(IN) Points to an LDAPMessage containing the results of an LDAP extended operation.
(OUT) Points to the dotted-OID text string that represents the name of the extended operation. Pass in NULL to ignore this field. When you are finished, you must free this string by calling the ldap_memfree function.
(OUT) Points to a berval structure that contains data from the extended operation response.
(IN) Specifies whether the resources allocated by the res parameter are freed.
Zero indicates that the resources used by the res parameter are not freed automatically. When you are done with the res parameter, you need to call the ldap_msgfree function to free the memory.
Non-zero indicates that memory is freed after the function extracts the information.
|
0x00 |
LDAP_SUCCESS |
|
Non-zero |
Failure. For a complete list, see |
|
0x54 |
LDAP_DECODING_ERROR |
|
0x59 |
LDAP_PARAM_ERROR |
|
0x5A |
LDAP_NO_MEMORY |
|
0x5C |
LDAP_NOT_SUPPORTED |
After calling the ldap_extended_operation and ldap_result functions, use ldap_parse_intermediate to parse intermediate extended information results returned by the LDAP server.