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

📄 ldapfilter.conf.5

📁 开放源码的ldap系统
💻 5
字号:
.TH LDAPFILTER.CONF 5 "20 August 2000" "OpenLDAP LDVERSION".\" $OpenLDAP: pkg/ldap/doc/man/man5/ldapfilter.conf.5,v 1.2.12.2 2000/08/20 21:14:30 kurt Exp $.\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved..\" Copying restrictions apply.  See COPYRIGHT/LICENSE..SH NAMEldapfilter.conf \- configuration file for LDAP get filter routines.SH SYNOPSISETCDIR/ldapfilter.conf.SH DESCRIPTION.LPThe file.B ETCDIR/ldapfilter.confcontains information used bythe LDAP get filter routines (see.BR ldap-getfilter (3)).Blank lines andlines that have a first character of `#' are treated as comments andignored.  The configuration information consists of lines that containone, two, three, four, or five tokens.  Tokens are separatedby white space, and double quotes `"' can be used to include white spaceinside a token..LPThe file consists of a sequence of one or more filter sets.  A filterset begins with a line containing a single token called a.I tag.The.I tagis used in the.BR ldap_getfirstfilter (3)call to select the filter set..LPThe filter set consists of a sequence of one or more filter lists.  Thefirst line in a filter list must contain four or five tokens: the.I value pattern,the.I delimiter list,a.I filter template,a.I match description,and an optional.I search scope.The.I value patternis a regular expression that is matched against the.B valuepassed to the.BR ldap_getfirstfilter (3)call to select the filter list..LPThe.I delimiter listis a list of characters (in the form of a single string) that are used tobreak the.B valueinto distinct words. .LPThe.I filter templateis used to construct an LDAP filter (it is described further below).LPThe.I match descriptionis returned to the called along with a filter as a piece of text that canbe used to describe the sort of LDAP search that took place.  It shouldcorrectly compete both of the following phrases:"One.I match descriptionmatch was found for..."and"Three.I match descriptionmatches were found for....".LPThe.I search scopeis optional, and should be one of "base", "onelevel", or "subtree".  If.I search scopeis not provided, the default is "subtree"..LPThe remaining lines of the filter list should contain two or three tokens,a.I filter template,a.I match descriptionand an optional.I search scope(as described above)..LPThe.I filter templateis similar in concept to a printf(3) style formatstring.  Everything is taken literally except for the charactersequences:.nf.ft I    %v    %v$    %vN    %vM-N    %vN-.ft.fiA plain.I %vmeans to substitute the entire.B valuestring in place of the.I %v..I %v$means substitute the last word in this spot.A.I %vN,where N is a single digit 1-9, means substitute word N in this spot.Words are number from left to right within the value starting at 1.A.I %vM-N,where M and N are both single digits 1-9, means substitute the indicatedsequence of words.A.I %vN-,where N is again a single digit 1-9, means substitute word N through thelast word in.B value..SH EXAMPLEThe following ldap filter configuration file contains two filter sets.RB ( fingerand.B go500gw.BR onelevel ),each of which contains four filter lists..LP.nf  # ldap filter file  #  finger    "="                " "     "%v"                    "arbitrary filter"    "[0-9][0-9\-]*"    " "     "(telephoneNumber=*%v)" "phone number"    "@"                " "     "(mail=%v)"             "email address"    "^.[. _].*"       ". _"   "(cn=%v1* %v2-)"        "first initial"    ".*[. _].$"        ". _"   "(cn=%v1-*)"            "last initial"    "[. _]"            ". _"   "(|(sn=%v1-)(cn=%v1-))"        "exact"                               "(|(sn~=%v1-)(cn~=%v1-))"      "approximate"    ".*"               ". "    "(|(cn=%v1)(sn=%v1)(uid=%v1))" "exact"                               "(|(cn~=%v1)(sn~=%v1))"        "approximate"  "go500gw onelevel"    "^..$"  " "   "(|(o=%v)(c=%v)(l=%v)(co=%v))"       "exact" "onelevel"                  "(|(o~=%v)(c~=%v)(l~=%v)(co~=%v))"   "approximate" "onelevel"    " "     " "   "(|(o=%v)(l=%v)(co=%v)"       "exact"        "onelevel"                  "(|(o~=%v)(l~=%v)(co~=%v)"    "approximate"  "onelevel"    "\."    " "   "(associatedDomain=%v)"       "exact"        "onelevel"    ".*"    " "   "(|(o=%v)(l=%v)(co=%v)"       "exact"        "onelevel"                  "(|(o~=%v)(l~=%v)(co~=%v)"    "approximate"  "onelevel".fi.LPThe call.ft Bldap_getfirstfilter( lfdp, "finger", "m.smith" );.ftwill return an LDAPFiltInfo structure with the.B lfi_filtermember containing the string.I (cn=m* smith)with the.B lfi_descmember containing the string.I first initial,and.B lfi_scopecontaining the value LDAP_SCOPE_SUBTREE..LPThe call.ft Bldap_getfirstfilter( lfdp, "go500gw onelevel", "umich" );.ftwill return an LDAPFiltInfo structure with the.B lfi_filtermember containing the string.I (|(o=umich)(l=umich)(co=umich)with the.B lfi_descmember containing the string.I exact,and.B lfi_scopecontaining the value LDAP_SCOPE_ONELEVEL..SH FILESETCDIR/ldapfilter.conf.SH SEE ALSO.BR ldap (3),.BR ldap_getfilter (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 + -