Logo  

web500gw: Example ldaptemplates.conf for person's entries

 
 
    Example ldaptemplates.conf for person's entries
          - comments bold/italics
# LDAP display templates
# Version must be 1
Version 1

# Person template
"person"               Name of the objectclass (looked up in
                       friendlyfile before presented to the user)
"people"               Plural name (used for listings -> friendlyfile)
"person icon"          Not used in web500gw (yet)
# template options
""                     is adding of a new entry of this object class allowed?
# objectclass list
person                 apply this template for this objectclass
END

# name of attribute to authenticate as
"self|manager"          self = the entry itself, manager = value of manager attr
# default attribute name to use when forming RDN of a new entry
cn                     Used for add.
# default location when adding new entries
""                     Not used in web500gw (yet)
# rules used to define default values for new entries
END                    Used for add.

# list of items for display
                       what attributes in what order
 type[,options]  attr-name (label)  attr-name (in directory)  [special args]
    Label is looked up in the friendlyfile before presented to the user 
# valid types are:
#    cis    - case ignore string
#    mls    - multiline string
#    dn     -
#    mail   - case ignore string that contains an RFC822 mail address
#    bool   - boolean value
#    jpeg   - inlined JPEG image
#    jpegbtn    - JPEG image button
#    fax    - inlined Fax image
#    faxbtn - Fax image button
#    audiobtn   - audio button
#    time   - time value
#    date   - time value displayed as a date only
#    url    - labeled URL for links to items in WWW
#    searchact  - search action
#    linkact    - link to another template
#
# valid options (comma separated list appended to the type) are:
#  ro       - attribute is read only; don't let user edit it
#  sort     - order the values of this attribute
#  1val     - disallow entry of multiple values
#  required - this attribute should have at least one value
#  hide     - don't show this item if attribute has no values
#  hideiffalse  - hide item if value is FALSE (for type 'bool' only)
    
item jpeg   ""  jpegPhoto   "Next Photo"
  - means: if there is a jpegPhoto attribute, show it first as inline image
item faxbtn    photo photo
  - means: make a photo (G3fax) as a link
item audiobtn  audio            audio
item cis,1val  personalTitle    personalTitle
samerow
item cis,sort   name            cn
  - means: display title and name on one line, 
           in modify: allow only one value for title
item mls    postalAddress       postalAddress
  - multiline string!
item mail   mail                mail
  - email address as mailto:-URL
item url    labeledURI          labeledURI
  - URL's as HREF
item dn,sort    seeAlso         seeAlso
  - DN as link to this DN

# tricky...
item linkact "More Attributes"   "" "?$tmpl=Person (more)"
  - a link to another template (to show some more technical attributes)

item linkact "Modify"     "" "?$bind,tmpl=Person"
  - a link to allow modify
item linkact vCard        vcard  "?vcard"
END


# Person template to add a new person's entry
"Person-add"
"People"
"person icon"
# template options
addable              Allow adding of a new entry of this object class
# objectclass list
person
END
# name of attribute to authenticate as
"manager"            manager = value of manager attr of entry below 
                     this new one is to be added
# default attribute name to use when forming RDN of a new entry
cn
# default location when adding new entries
""
# rules used to define default values for new entries
constant objectclass top
constant objectclass person
constant objectclass organizationalPerson
constant objectclass thornObject
constant objectclass thornPerson
constant objectclass labeledURIObject
constant objectclass quipuObject
constant mail change:@tu-chemnitz.de
constant telephoneNumber "edit:+49 371 531-"
addersdn manager
END
# list of items to add

item cis,sort,required  cn  cn
item cis,1val,required   sn  sn
item cis,1val   personalTitle           personalTitle
item cis        ou                      ou
item cis        telephoneNumber         telephoneNumber
item cis        facsimileTelephoneNumber    facsimileTelephoneNumber
item mail,required      mail                    mail
item cis        userPassword            userPassword
item url        labeledURI              labeledURI
item cis        roomNumber              roomNumber
item cis,1val   uid                     uid
item cis        person-description      description
item dn,ro    manager                 manager
item cis,ro     objectclass             objectclass
END
VERSION: 2.1rc1
 Availability
 Features
 Changes
 Known Bugs
 Links & References

Installation
 Modes

Configuration:
 web500gw.conf
 Hints
 vCards
 Search interface
 Adding entries

Examples:
 web500gw.conf
 ldaptemplates.conf
 ldapfriendly

Support:
 Y2K proof?
 Mailing List
 Troubleshooting
 URL format
 URLs in entries
 LDAP errors

Developers
 SF.net Project

Test it:
 TU Chemnitz
 TU Chemnitz CGI
 Other sites


hosted by sourceforge
  (ldaptemplates.conf.html.php Version 1.1) last modified by dekarl on 2001/07/22 at 20:17:46 GMT