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

📄 ldap_first_reference.3

📁 ldap服务器源码
💻 3
字号:
.TH LDAP_FIRST_REFERENCE 3 "RELEASEDATE" "OpenLDAP LDVERSION".\" $OpenLDAP: pkg/ldap/doc/man/man3/ldap_first_reference.3,v 1.9.2.4 2007/01/02 21:43:44 kurt Exp $.\" Copyright 1998-2007 The OpenLDAP Foundation All Rights Reserved..\" Copying restrictions apply.  See COPYRIGHT/LICENSE..SH NAMEldap_first_reference, ldap_next_reference, ldap_count_references \- Steppingthrough continuation references in a result chain.SH LIBRARYOpenLDAP LDAP (libldap, -lldap).SH SYNOPSIS.nf.ft B#include <ldap.h>.LP.ft Bint ldap_count_references( LDAP *ld, LDAPMessage *result ).LP.ft BLDAPMessage *ldap_first_reference( LDAP *ld, LDAPMessage *result ).LP.ft BLDAPMessage *ldap_next_reference( LDAP *ld, LDAPMessage *reference ).SH DESCRIPTION.LPThese routines are used to step through the continuation references in aresult chain received from.BR ldap_result (3)or the synchronous LDAP search operation routines..LPThe.B ldap_first_reference()routine is used to retrieve the first reference message in aresult chain.  It takes the \fIresult\fP as returned by a call to.BR ldap_result (3) ,.BR ldap_search_s (3)or.BR ldap_search_st (3)and returns a pointer to the first reference message in theresult chain..LPThis pointer should be supplied on a subsequent call to.B ldap_next_reference()to get the next reference message, the result of which should besupplied to the next call to.BR ldap_next_reference() ,etc..B ldap_next_reference()will return NULL when there are no more reference messages.The reference messages returned from these calls are used by.BR ldap_parse_reference (3)to extract referrals and controls..LPA count of the number of reference messages in the search result can beobtained by calling.BR ldap_count_references() .It can also be used to count the number of reference messages remainingin a result chain..SH ERRORSIf an error occurs in.B ldap_first_reference()or.BR ldap_next_reference() ,NULL is returned.  If an error occurs in.BR ldap_count_references() ,-1 is returned..SH SEE ALSO.BR ldap (3),.BR ldap_result (3),.BR ldap_search (3),.BR ldap_parse_reference (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 + -