man pages section 3: Networking Library Functions

Exit Print View

Updated: July 2014
 
 

ldap_parse_result(3LDAP)

Name

ldap_parse_result, ldap_parse_extended_result, ldap_parse_sasl_bind_result - LDAP message result parser

Synopsis

cc [ flag... ] file... -lldap [ library... ]
#include <lber.h>
#include <ldap.h>

int ldap_parse_result(LDAP *ld, LDAPMessage *res, int *errcodep,
     char **matcheddnp,char **errmsgp, char ***referralsp,
     LDAPControl ***serverctrlsp, int freeit);
int ldap_parse_sasl_bind_result(LDAP *ld, LDAPMessage *res,
     struct berval **servercredp,int freeit);
int ldap_parse_extended_result(LDAP *ld, LDAPMessage *res,
     char **resultoidp, struct berval **resultdata, int freeit);

Description

The ldap_parse_extended_result(), ldap_parse_result() and ldap_parse_sasl_bind_result() routines search for a message to parse. These functions skip messages of type LDAP_RES_SEARCH_ENTRY and LDAP_RES_SEARCH_REFERENCE .

Return Values

They return LDAP_SUCCESS if the result was successfully parsed or an LDAP error code if not (see ldap_error(3LDAP)).

Attributes

See attributes(5) for a description of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/library
Interface Stability
Committed

See also

ldap_error(3LDAP), ldap_result(3LDAP), attributes(5)