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

📄 ldap_friendly.3

📁 开放源码的ldap系统
💻 3
字号:
.TH LDAP_FRIENDLY 3 "22 September 1998" "OpenLDAP LDVERSION".\" $OpenLDAP: pkg/ldap/doc/man/man3/ldap_friendly.3,v 1.4.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_friendly_name, ldap_free_friendlymap \- LDAP unfriendly to friendly name mapping routine.SH SYNOPSIS.nf.ft B#include <ldap.h>.LP.ft Btypedef struct ldap_friendly {        char *lf_unfriendly;        char *lf_friendly;} LDAPFriendlyMap;.LP.ft Bchar *ldap_friendly_name(filename, name, map).ftchar *filename;char *name;LDAPFriendlyMap **map;.LP.ft Bvoid ldap_free_friendlymap(map).ftLDAPFriendlyMap **map;.SH DESCRIPTIONThis routine is used to map one set of strings to another.  Typically,this is done for country names, to map from the two-letter countrycodes to longer more readable names.  The mechanism is general enoughto be used with other things, though..LP\fIfilename\fP is the name of a file containing the unfriendly tofriendly mapping, \fIname\fP is the unfriendly name to map to a friendlyname, and \fImap\fP is a result-parameter that should be set to NULLon the first call.  It is then used to hold the mapping in core so thatthe file need not be read on subsequent calls..LPFor example:.LP.nf.ft tt        LDAPFriendlyMap *map = NULL;        printf( "unfriendly %s => friendly %s\\n", name,            ldap_friendly_name( "DATADIR/ldapfriendly", name, &map ) );.ft.fi.LPThe mapping file should contain lines like this: unfriendlyname\\tfriendlyname.Lines that begin with a '#' character are comments and are ignored..LPThe.B ldap_free_friendlymap()call is used to free structures allocated by.B ldap_friendly_name()when no more calls to.B ldap_friendly_name()are to be made..SH ERRORSNULL is returned by.B ldap_friendly_name()if there is an error opening \fIfilename\fP, or if the file has a badformat, or if the \fImap\fP parameter is NULL..SH FILESDATADIR/ldapfriendly.conf.SH SEE ALSO.BR ldap (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 + -