⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ldap_parse_result.3

📁 OpenLdap是LDAP的开源项目
💻 3
字号:
.TH LDAP_PARSE_RESULT 3 "RELEASEDATE" "OpenLDAP LDVERSION".\" $OpenLDAP: pkg/ldap/doc/man/man3/ldap_parse_result.3,v 1.9.2.5 2007/01/02 21:43:45 kurt Exp $.\" Copyright 1998-2007 The OpenLDAP Foundation All Rights Reserved..\" Copying restrictions apply.  See COPYRIGHT/LICENSE..SH NAMEldap_parse_result \- Parsing results.SH LIBRARYOpenLDAP LDAP (libldap, -lldap).SH SYNOPSIS.nf.ft B#include <ldap.h>.LP.ft Bint ldap_parse_result( LDAP *ld, LDAPMessage *result,	int *errcodep, char **matcheddnp, char **errmsgp,	char ***referralsp, LDAPControl ***serverctrlsp,	int freeit ).LP.ft Bint ldap_parse_sasl_bind_result( LDAP *ld, LDAPMessage *result,	struct berval **servercredp, int freeit ).LP.ft Bint ldap_parse_extended_result( LDAP *ld, LDAPMessage *result,	char **retoidp, struct berval **retdatap, int freeit ).SH DESCRIPTION.LPThese routines are used to extract information from a result message.They will operate on the first result message in a chain of searchresults (skipping past other message types). They take the \fIresult\fPas returned by a call to.BR ldap_result (3),.BR ldap_search_s (3)or.BR ldap_search_st (3).In addition to.BR ldap_parse_result() ,the routines.B ldap_parse_sasl_bind_result()and.B ldap_parse_extended_result()are used to get all the result information from SASL bind and extendedoperations..LPThe \fIerrcodep\fP parameter will be filled in with the result code fromthe result message..LPThe server might supply a matched DN string in the message indicatinghow much of a name in a request was recognized. The \fImatcheddnp\fPparameter will be filled in with this string if supplied, else it willbe NULL. If a string is returned, it should be freed using.BR ldap_memfree (3)..LPThe \fIerrmsgp\fP parameter will be filled in with the error messagefield from the parsed message. This string should be freed using.BR ldap_memfree (3)..LPThe \fIreferralsp\fP parameter will be filled in with an allocated array ofreferral strings from the parsed message. This array should be freed using.BR ldap_memvfree (3).If no referrals were returned, \fI*referralsp\fP is set to NULL..LPThe \fIserverctrlsp\fP parameter will be filled in with an allocated array ofcontrols copied from the parsed message. The array should be freed using.BR ldap_controls_free (3).If no controls were returned, \fI*serverctrlsp\fP is set to NULL..LPThe \fIfreeit\fP parameter determines whether the parsed message isfreed or not after the extraction. Any non-zero value will make itfree the message. The.BR ldap_msgfree (3)routine can also be used to free the message later..LPFor SASL bind results, the \fIservercredp\fP parameter will be filled inwith an allocated berval structure containing the credentials from theserver if present. The structure should be freed using.BR ber_bvfree (3)..LPFor extended results, the \fIretoidp\fP parameter will be filled inwith the dotted-OID text representation of the name of the extendedoperation response. The string should be freed using.BR ldap_memfree (3).If no OID was returned, \fI*retoidp\fP is set to NULL..LPFor extended results, the \fIretdatap\fP parameter will be filled inwith a pointer to a berval structure containing the data from theextended operation response. The structure should be freed using.BR ber_bvfree (3).If no data were returned, \fI*retdatap\fP is set to NULL..LPFor all the above result parameters, NULL values can be used in callsin order to ignore certain fields..SH ERRORSUpon success LDAP_SUCCESS is returned. Otherwise the values of theresult parameters are undefined..SH SEE ALSO.BR ldap (3),.BR ldap_result (3),.BR ldap_search (3),.BR ldap_memfree (3),.BR ldap_get_values (3),.BR ldap_controls_free (3),.BR lber-types (3).SH ACKNOWLEDGEMENTS.B OpenLDAPis developed and maintained by The OpenLDAP Project (http://www.openldap.org/)..B OpenLDAPis derived from University of Michigan LDAP 3.3 Release.  

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -