📄 ldaptemplates.conf.5
字号:
.TH LDAPTEMPLATES.CONF 5 "20 August 2000" "OpenLDAP LDVERSION".\" $OpenLDAP: pkg/ldap/doc/man/man5/ldaptemplates.conf.5,v 1.2.12.4 2000/08/21 02:40:26 kurt Exp $.\" Copyright 1998-2000 The OpenLDAP Foundation All Rights Reserved..\" Copying restrictions apply. See COPYRIGHT/LICENSE..SH NAMEldaptemplates.conf \- configuration file for LDAP display template routines.SH SYNOPSISETCDIR/ldaptemplates.conf.SH DESCRIPTION.LPThe file ETCDIR/ldaptemplates.conf contains information used bythe LDAP display templates routines (see ldap-disptmpl(3)). Blank linesand lines that have a first character of `#' are treated as comments andignored. Non-comment lines contain one or more tokens. Tokens areseparated by white space, and double quotes `"' can be used to includewhite space inside a token..LPThe first non-commment line specifies the version of the templateinformation and must contain the token.I Versionfollowed by an integer version number. E.g.,.nf.ft B Version 1.ft.fiThe current version is.I 1,so the above example is always the correct opening line..LPThe remainder of the file consists of one or more display templates.The first two lines of the display template should each contain a singletoken that specifies singular and plural names for the template that aresuitable for human consumption. These names are stored in the.I dt_nameand.I dt_pluralnamemembers of the.I ldap_disptmplstructure.E.g.,.nf.ft B "Person" "People".ft.fispecifies appropriate names for a template designed to display X.500person information..LPThe next line specifies the name of the icon or similar element that isassociated with this template. E.g.,.nf.ft B "person icon".ft.fi.LPThe next line is a blank-separated list of template options. "" can beused if no options are desired. Available options are: "addable" (itis appropriate to allow entries of this type to be added), "modrdn" (itis appropriate to offer the "modify rdn" operation), "altview" (thistemplate is merely an alternate view of another template, typicallyused for templates pointed to be a linkaction item). E.g.,.nf.ft B "addable" "modrdn".ft.fi.LPThe next portion of the template is a list of X.500 object classes thatis used to determine whether the template should be used to display agiven entry. The object class information consists of one or more lines,followed by a terminating line that contains the single token.I END.Each line contains one or more object class names, all of which must bepresent in an X.500 entry for the.I ldap_oc2template(3)routine to return a pointer to this template.The object class information is stored in the.I dt_oclistmember of the.I ldap_disptmplstructure. Multiple lines can be used to associate more than one setof object classes with a given template. E.g.,.nf.ft B umichPerson lblPerson END.ft.fimeans that the template is appropriate for display of umichPerson entries orlblPerson entries..LPNext next line after the object class list is the name of the attributeto authenticate as to make changes (use "" if it is appropriate toauthenticate as the entry itself). E.g.,.nf.ft B "owner".ft.fi.LPThe next line is the default attribute to use when naming a new entry.E.g.,.nf.ft B "cn".ft.fi.LPThe next line is the default location under which new entries are created.It should be a string-represented Distringuished Name. E.g.,.nf.ft B "dc=example, dc=com".ft.fi.LPThe next section is a list of rules used to assign default values to newentries. The list should be terminated with a line that contains thesingle token.I END.Each line in this section should either begin with the token.I constantand be followed by the name of the attribute and a constant value toassign, or the line should begin with.I addersdnfollowed by the name of an attribute whose value will be the DN of theperson who has authenticated to add the entry.E.g.,.nf.ft B constant associatedDomain umich.edu addersdn seeAlso END.ft.fi.LPThe last portion of the template is a list of items to display. Itconsists of one or more lines, followed by a terminating line thatcontains the single token.I END.Each line is must begin with the token.I samerowor the token.I item.LPIt is assumed that each item appears on a row by itself unless it waspreceded by a.I samerowline (in which case it should be displayed on the same line as theprevious item, if possible). Lines that begin with.I samerowshould not have any other tokens on them..LPLines that begin with.I itemmust have at least three more tokens on them: an item type, a label,and an attribute name. Any extra tokens are taken as extra argumentsand are stored in the.I ti_argsmember of the.I ldap_tmplitemstructure..LPThe item type token must be one of the following strings:.I cis(for case ignore string attributes),.I mls(for multiline string attributes),.I mail(for RFC-822 conformant mail address attributes),.I dn(for distinguished name pointer attributes),.I bool(for Boolean attributes),.I jpeg(for JPEG photo attributes),.I jpegbtn(for a button that will retrieve and show a JPEG photo attribute),.I fax(for FAX T.4 format image attributes),.I faxbtn(for a button that will retrieve and show a FAX photo attribute),.I audiobtn(for audio attributes),.I time(for UTC time attributes),.I date(for UTC time attributes where only the date portion should be shown),.I url(for labeled Uniform Resource Locator attributes),.I searchact(to define an action that will do a directory search for other entries),.I linkact(to define an action which is a link to another display template). Seethe ACTIONS section below for more information on search and link actions..LPAn example of an item line for the drink attribute (displayed withlabel "Favorite Beverage"):.nf.ft B item cis "Favorite Beverage" drink.ft.fi.SH ACTIONSThis section has not been written yet. Sorry!.SH EXAMPLEThe following template configuration file contains two templates, onefor display of people entries and one for display of contries..nf.ft B # # LDAP display templates # # Version must be 1 for now # Version 1 # # Person template "Person" "People" # name of the icon that is associated with this template "person icon" # blank-separated list of template options ("" for none) "addable" # # objectclass list person END # # name of attribute to authenticate as ("" means auth as this entry) "" # # default attribute name to use when forming RDN of a new entry # cn # # default location when adding new entries (DN; "" means no default) "dc=example, dc=com" # # rules used to define default values for new entries END # # list of items for display item jpegbtn "View Photo" jpegPhoto "Next Photo" item audiobtn "Play Sound" audio item cis "Also Known As" cn item cis "Title" title item mls "Work Address" postalAddress item cis "Work Phone" telephoneNumber item cis "Fax Number" facsimileTelephoneNumber item mls "Home Address" homePostalAddress item cis "Home Phone" homePhone item cis "User ID" uid item mail "E-Mail Address" mail item cis "Description" description item cis "Favorite Beverage" drink item dn "See Also" seeAlso END.ft.fi.SH FILESETCDIR/ldaptemplates.conf.SH SEE ALSO.BR ldap (3),.BR ldap_disptmpl (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 + -