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

📄 ldap_get_values.3

📁 开放源码的ldap系统
💻 3
字号:
.TH LDAP_GET_VALUES 3 "22 September 1998" "OpenLDAP LDVERSION".\" $OpenLDAP: pkg/ldap/doc/man/man3/ldap_get_values.3,v 1.3.8.1 2000/06/13 17:57:12 kurt Exp $.\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved..\" Copying restrictions apply.  See COPYRIGHT/LICENSE..SH NAMEldap_get_values, ldap_get_values_len, ldap_count_values \- LDAP attribute value handling routines.SH SYNOPSIS.nf.ft B#include <ldap.h>typedef struct berval {    unsigned long bv_len;    char *bv_val;};.LP.ft Bchar **ldap_get_values(ld, entry, attr).ftLDAP *ld;LDAPMessage *entry;char *attr.LP.ft Bstruct berval **ldap_get_values_len(ld, entry, attr).ftLDAP *ld;LDAPMessage *entry;char *attr.LP.ft Bldap_count_values(vals).ftchar **vals;.LP.ft Bldap_count_values_len(vals).ftstruct berval **vals;.LP.ft Bldap_value_free(vals).ftchar **vals;.LP.ft Bldap_value_free_len(vals).ftstruct berval **vals;.SH DESCRIPTIONThese routines are used to retrieve and manipulate attribute valuesfrom an LDAP entry as returned by.BR ldap_first_entry (3)or.BR ldap_next_entry (3)..B ldap_get_values()takes the \fIentry\fP and the attribute \fIattr\fPwhose values are desired and returns a NULL-terminated array of theattribute's values.  \fIattr\fP may be an attribute type as returnedfrom.BR ldap_first_attribute (3)or.BR ldap_next_attribute (3),or if the attribute type is known it can simply be given..LPThe number of values in the array can be counted by calling.BR ldap_count_values() .The array of values returned can be freed by calling.BR ldap_value_free() ..LPIf the attribute values are binary in nature, and thus not suitableto be returned as an array of char *'s, the.B ldap_get_values_len()routine can be used instead.  It takes the same parameters as.BR ldap_get_values() ,but returns a NULL-terminated array of pointersto berval structures, each containing the length of and a pointerto a value..LPThe number of values in the array can be counted by calling.BR ldap_count_values_len() .The array of values returned can be freed by calling.BR ldap_value_free_len() ..SH ERRORSIf an error occurs in.B ldap_get_values()or.BR ldap_get_values_len() ,NULL is returned and the.B ld_errnofield in the \fIld\fP parameter is set toindicate the error.  See.BR ldap_error (3)for a description of possible error codes..SH NOTESThese routines dynamically allocate memory which the caller must freeusing the supplied routines..SH SEE ALSO.BR ldap(3),.BR ldap_first_entry(3),.BR ldap_first_attribute(3),.BR ldap_error(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 + -