home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1997 December / Internet_Info_CD-ROM_Walnut_Creek_December_1997.iso / drafts / draft_ietf_a_c / draft-ietf-asid-ldapv3-attributes-05.txt < prev    next >
Text File  |  1997-06-09  |  52KB  |  1,441 lines

  1.  
  2. Network Working Group                                            M. Wahl
  3. INTERNET-DRAFT                                       Critical Angle Inc.
  4. Obsoletes: RFC 1778                                          A. Coulbeck
  5.                                                            Isode Limited
  6.                                                                 T. Howes
  7.                                            Netscape Communications Corp.
  8.                                                                 S. Kille
  9.                                                            Isode Limited
  10. Intended Category: Standards Track                           6 June 1997
  11.  
  12.  
  13.                   Lightweight Directory Access Protocol (v3):
  14.                        Attribute Syntax Definitions
  15.                  <draft-ietf-asid-ldapv3-attributes-05.txt> 
  16.  
  17. 1. Status of this Memo
  18.  
  19.    This document is an Internet-Draft.  Internet-Drafts are working 
  20.    documents of the Internet Engineering Task Force (IETF), its areas, and
  21.    its working groups.  Note that other groups may also distribute working
  22.    documents as Internet-Drafts.
  23.  
  24.    Internet-Drafts are draft documents valid for a maximum of six months
  25.    and may be updated, replaced, or obsoleted by other documents at any
  26.    time.  It is inappropriate to use Internet-Drafts as reference material
  27.    or to cite them other than as "work in progress."
  28.  
  29.    To learn the current status of any Internet-Draft, please check the
  30.    "1id-abstracts.txt" listing  contained in the Internet-Drafts Shadow
  31.    Directories on ds.internic.net (US East Coast), nic.nordu.net (Europe),
  32.    ftp.isi.edu (US West Coast), or munnari.oz.au (Pacific Rim).
  33.  
  34. 2. Abstract
  35.  
  36.    The Lightweight Directory Access Protocol (LDAP) [1] requires that 
  37.    the contents of AttributeValue fields in protocol elements be octet 
  38.    strings.  This document defines a set of syntaxes for LDAPv3, and the
  39.    rules by which attribute values of these syntaxes are represented as
  40.    octet strings for transmission in the LDAP protocol.  The syntaxes 
  41.    defined in this document are referenced by this and other documents 
  42.    that define attribute types.  This document also defines the set of 
  43.    attribute types which LDAP servers should support.
  44.  
  45. 3. Overview
  46.  
  47.    This document defines the framework for developing schemas for 
  48.    directories accessible via the Lightweight Directory Access Protocol.
  49.  
  50.    Schema is the collection of attribute type definitions, object class
  51.    definitions and other information which a server uses to determine
  52.    how to match a filter or attribute value assertion (in a compare 
  53.    operation) against the attributes of an entry, and whether to permit 
  54.    add and modify operations.  
  55.  
  56.    Section 4 states the general requirements and notations for attribute
  57.    types, object classes, syntax and matching rule definitions.
  58.  
  59.  
  60. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 1
  61.  
  62. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  63.  
  64.    Section 5 lists attributes, section 6 syntaxes and section 7 object 
  65.    classes.
  66.  
  67.    Additional documents define schemas for representing real-world 
  68.    objects as directory entries.
  69.  
  70. 4. General Issues
  71.  
  72.    This document describes encodings used in an Internet protocol. 
  73.  
  74.    The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", 
  75.    "SHOULD", "SHOULD NOT", "RECOMMENDED",  "MAY", and "OPTIONAL" in 
  76.    this document are to be interpreted as described in RFC 2119 [4].
  77.  
  78. 4.1. Common Encoding Aspects
  79.  
  80.    For the purposes of defining the encoding rules for attribute 
  81.    syntaxes, the following BNF definitions will be used.  They are 
  82.    based on the BNF styles of RFC 822 [13].
  83.  
  84.      a     = "a" / "b" / "c" / "d" / "e" / "f" / "g" / "h" / "i" /
  85.              "j" / "k" / "l" / "m" / "n" / "o" / "p" / "q" / "r" /
  86.              "s" / "t" / "u" / "v" / "w" / "x" / "y" / "z" / "A" /
  87.              "B" / "C" / "D" / "E" / "F" / "G" / "H" / "I" / "J" /
  88.              "K" / "L" / "M" / "N" / "O" / "P" / "Q" / "R" / "S" /
  89.              "T" / "U" / "V" / "W" / "X" / "Y" / "Z"
  90.  
  91.      d               = "0" / "1" / "2" / "3" / "4" / 
  92.                        "5" / "6" / "7" / "8" / "9"
  93.  
  94.      hex-digit       =  d / "a" / "b" / "c" / "d" / "e" / "f" /
  95.                             "A" / "B" / "C" / "D" / "E" / "F"
  96.  
  97.      k               = a / d / "-"
  98.  
  99.      p               = a / d / """ / "(" / ")" / "+" / "," / 
  100.                        "-" / "." / "/" / ":" / "?" / " "
  101.  
  102.      letterstring    = 1*a
  103.  
  104.      numericstring   = 1*d
  105.  
  106.      anhstring       = 1*k
  107.  
  108.      keystring       = a [ anhstring ]
  109.  
  110.      printablestring = 1*p
  111.  
  112.      space           = 1*" " 
  113.  
  114.      whsp            = [ space ]
  115.  
  116.      utf8            = <any sequence of octets formed from the UTF-8 [9] 
  117.                         transformation of a character from ISO10646 [10]>
  118.  
  119.  
  120. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 2
  121.  
  122. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  123.  
  124.      dstring         = 1*utf8
  125.  
  126.      qdstring        = whsp "'" dstring "'" whsp
  127.  
  128.      qdstringlist    = ( qdstringlist qdstring ) / ""
  129.  
  130.      qdstrings       = qdstring / ( whsp "(" qdstringlist ")" whsp )
  131.  
  132.    In the following BNF for the string representation of OBJECT 
  133.    IDENTIFIERs, descr is the syntactic representation of an object 
  134.    descriptor, which consists of letters and digits, starting with a 
  135.    letter.  An OBJECT IDENTIFIER in the numericoid format should not 
  136.    have leading zeroes (e.g. "0.9.3" is permitted but "0.09.3" should 
  137.    not be generated).
  138.  
  139.    When encoding values in syntax, the descr encoding option SHOULD
  140.    be used in preference to the numericoid. An object descriptor is
  141.    a more readable alias for a number OBJECT IDENTIFIER, and these 
  142.    (where assigned and known by the implementation) SHOULD be used in
  143.    preference to numeric oids to the greatest extent possible.  
  144.    Examples of object descriptors in LDAP are attribute type, object 
  145.    class and matching rule names. 
  146.  
  147.      oid             = descr / numericoid 
  148.  
  149.      descr           = keystring 
  150.  
  151.      numericoid      = numericstring *( "." numericstring )
  152.  
  153.      woid            = whsp oid whsp
  154.  
  155.      ; set of oids of either form
  156.      oids            = woid / ( "(" oidlist ")" )
  157.  
  158.      oidlist         = woid *( "$" woid )
  159.  
  160.      ; object descriptors used as schema element names
  161.      qdescrs         = qdescr / ( whsp "(" qdescrlist ")" whsp )
  162.  
  163.      qdescrlist      = ( qdescrlist qdescr ) / ""
  164.  
  165.      qdescr          = whsp "'" descr "'" whsp
  166.  
  167. 4.2. Attribute Types
  168.  
  169.    The attribute types are described by sample values for the subschema 
  170.    "attributeTypes" attribute, which is written in the 
  171.    AttributeTypeDescription syntax.  While lines have been folded for 
  172.    readability, the values transferred in protocol would not contain 
  173.    newlines.  
  174.  
  175.    The AttributeTypeDescription is encoded according to the following 
  176.    BNF, and the productions for oid, qdsescrs and qdstring are given
  177.    in section 4.1.  Implementors should note that future versions of this
  178.    document may have expanded this BNF to include additional terms.
  179.  
  180. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 3
  181.  
  182. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  183.  
  184.       AttributeTypeDescription = "(" whsp
  185.             numericoid whsp              ; AttributeType identifier
  186.           [ "NAME" qdescrs ]             ; name used in AttributeType
  187.           [ "DESC" qdstring ]            ; description
  188.           [ "OBSOLETE" whsp ]
  189.           [ "SUP" woid ]                 ; derived from this other 
  190.                                          ; AttributeType
  191.           [ "EQUALITY" woid              ; Matching Rule name
  192.           [ "ORDERING" woid              ; Matching Rule name
  193.           [ "SUBSTR" woid ]              ; Matching Rule name 
  194.           [ "SYNTAX" whsp numericoid whsp ]   ; see section 4.2
  195.           [ "SINGLE-VALUE" whsp ]        ; default multi-valued
  196.           [ "COLLECTIVE" whsp ]          ; default not collective
  197.           [ "NO-USER-MODIFICATION" whsp ]; default user modifiable
  198.           [ "USAGE" whsp AttributeUsage ]; default user applications
  199.           whsp ")"
  200.     
  201.       AttributeUsage =
  202.           "userApplications"     /
  203.           "directoryOperation"   /
  204.           "distributedOperation" / ; DSA-shared
  205.           "dSAOperation"          ; DSA-specific, value depends on server
  206.  
  207.    Servers are not required to provide the same or any text 
  208.    in the description part of the subschema values they maintain.
  209.    Servers SHOULD provide at least one of the "SUP" and "SYNTAX" fields 
  210.    for each AttributeTypeDescription.
  211.  
  212.    Servers SHOULD implement all the attribute types referenced in 
  213.    section 5.  Servers MUST be able to evaluate presence filters, 
  214.    SHOULD be able to perform equality matching of values of all user 
  215.    attributes known to the server, and MAY be able to perform matching
  216.    with the other kinds of filters.  If a server allows values of an 
  217.    attribute of a particular type to be added or removed over protocol, 
  218.    the server MUST be able to perform equality matching of values of 
  219.    that attribute, but need not perform any additional validity checks 
  220.    on attribute values.
  221.    
  222.    Servers MAY recognize additional names and attributes not listed in 
  223.    this document, and if they do so, SHOULD publish the definitions of 
  224.    the types in the attributeTypes attribute of their subschema 
  225.    entries.
  226.  
  227.    AttributeDescriptions can be used as the value in a NAME part of an
  228.    AttributeTypeDescription.  Note that these are case insensitive.
  229.  
  230.    Note that the AttributeTypeDescription does not list the matching 
  231.    rules which can can be used with that attribute type in an 
  232.    extensibleMatch search filter.  This is done using the matchingRuleUse
  233.    attribute described in section 4.4.
  234.  
  235.  
  236.  
  237.  
  238.  
  239.  
  240. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 4
  241.  
  242. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  243.  
  244. 4.2. Syntaxes
  245.  
  246.    This section defines general requirements for LDAP attribute value
  247.    syntax encodings. All documents defining attribute syntax encodings 
  248.    for use with LDAP are expected to conform to these requirements.
  249.  
  250.    The encoding rules defined for a given attribute syntax must produce
  251.    octet strings.  To the greatest extent possible, encoded octet
  252.    strings should be usable in their native encoded form for display
  253.    purposes. In particular, encoding rules for attribute syntaxes
  254.    defining non-binary values should produce strings that can be
  255.    displayed with little or no translation by clients implementing 
  256.    LDAP.  There are a few cases (e.g. audio) however, when it is not 
  257.    sensible to produce a printable representation, and clients MUST NOT 
  258.    assume that an unrecognized syntax is a string representation.
  259.  
  260.    In encodings where an arbitrary string is used as part of a larger 
  261.    production (other than a Distinguished Name), a backslash quoting 
  262.    mechanism is used to encode the following separator symbol character 
  263.    (such as "'", "$" or "#") if it should occur in that string.  The 
  264.    backslash is followed by a pair of hexadecimal digits representing the
  265.    next character.  A backslash itself in the string which forms part of 
  266.    a larger syntax is always transmitted as '\5C' or '\5c'.
  267.  
  268.    Syntaxes are also defined for matching rules whose assertion value 
  269.    syntax is different from the attribute value syntax.
  270.  
  271. 4.2.1  Binary Transfer of Values
  272.  
  273.    This encoding format is used if the binary encoding is requested by 
  274.    the client for an attribute, or if the attribute syntax name is 
  275.    "1.3.6.1.4.1.1466.115.121.1.5".  The value, an instance of the ASN.1 
  276.    AttributeValue type, is BER-encoded, subject to the restrictions of 
  277.    section 5.1 of [1], and this sequence of octets is used as the value. 
  278.    (E.g. the first byte inside the OCTET STRING wrapper is a tag byte. 
  279.    However the OCTET STRING is still encoded in primitive form.)
  280.  
  281.    All servers MUST implement this form for both generating attribute 
  282.    values in search responses, and parsing attribute values in add, 
  283.    compare and modify requests, if the attribute type is recognized and 
  284.    the attribute syntax name is that of Binary.  Clients which request 
  285.    that all attributes be returned from entries MUST be prepared 
  286.    to receive values in binary (e.g. userCertificate), and SHOULD NOT 
  287.    simply display binary or unrecognized values to users.
  288.  
  289. 4.2.2. Syntax Object Identifiers
  290.  
  291.    Syntaxes for use with LDAP are named by OBJECT IDENTIFIERs, which
  292.    are dotted-decimal strings.  These are not intended to be displayed 
  293.    to users.
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 5
  301.  
  302. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  303.  
  304.    The following table lists some of the syntaxes that have been defined 
  305.    for LDAP thus far.  The H-R column suggests whether a value in that 
  306.    syntax would likely be a human readable string.  Clients and servers 
  307.    need not implement all the syntaxes listed here, and MAY implement 
  308.    other syntaxes.
  309.  
  310.    Other documents may define additional syntaxes.  However, the 
  311.    definition of additional arbitrary syntaxes is strongly depreciated
  312.    since it will hinder interoperability: today's client and server
  313.    implementations generally do not have the ability to dynamically
  314.    recognize new syntaxes.  In most cases attributes will be defined 
  315.    with the syntax for directory strings.
  316.  
  317.    Value being represented        H-R OBJECT IDENTIFIER
  318.    =================================================================
  319.    ACI Item                        N  1.3.6.1.4.1.1466.115.121.1.1
  320.    Access Point                    Y  1.3.6.1.4.1.1466.115.121.1.2
  321.    Attribute Type Description      Y  1.3.6.1.4.1.1466.115.121.1.3
  322.    Audio                           N  1.3.6.1.4.1.1466.115.121.1.4
  323.    Binary                          N  1.3.6.1.4.1.1466.115.121.1.5
  324.    Bit String                      Y  1.3.6.1.4.1.1466.115.121.1.6
  325.    Boolean                         Y  1.3.6.1.4.1.1466.115.121.1.7
  326.    Certificate                     N  1.3.6.1.4.1.1466.115.121.1.8
  327.    Certificate List                N  1.3.6.1.4.1.1466.115.121.1.9
  328.    Certificate Pair                N  1.3.6.1.4.1.1466.115.121.1.10
  329.    Country String                  Y  1.3.6.1.4.1.1466.115.121.1.11
  330.    DN                              Y  1.3.6.1.4.1.1466.115.121.1.12
  331.    Data Quality Syntax             Y  1.3.6.1.4.1.1466.115.121.1.13
  332.    Delivery Method                 Y  1.3.6.1.4.1.1466.115.121.1.14
  333.    Directory String                Y  1.3.6.1.4.1.1466.115.121.1.15
  334.    DIT Content Rule Description    Y  1.3.6.1.4.1.1466.115.121.1.16
  335.    DIT Structure Rule Description  Y  1.3.6.1.4.1.1466.115.121.1.17
  336.    DL Submit Permission            Y  1.3.6.1.4.1.1466.115.121.1.18
  337.    DSA Quality Syntax              Y  1.3.6.1.4.1.1466.115.121.1.19
  338.    DSE Type                        Y  1.3.6.1.4.1.1466.115.121.1.20
  339.    Enhanced Guide                  Y  1.3.6.1.4.1.1466.115.121.1.21
  340.    Facsimile Telephone Number      Y  1.3.6.1.4.1.1466.115.121.1.22
  341.    Fax                             N  1.3.6.1.4.1.1466.115.121.1.23
  342.    Generalized Time                Y  1.3.6.1.4.1.1466.115.121.1.24
  343.    Guide                           Y  1.3.6.1.4.1.1466.115.121.1.25
  344.    IA5 String                      Y  1.3.6.1.4.1.1466.115.121.1.26
  345.    INTEGER                         Y  1.3.6.1.4.1.1466.115.121.1.27
  346.    JPEG                            N  1.3.6.1.4.1.1466.115.121.1.28
  347.    LDAP Syntax Description         Y  1.3.6.1.4.1.1466.115.121.1.54
  348.    Master And Shadow Access Points Y  1.3.6.1.4.1.1466.115.121.1.29
  349.    Matching Rule Description       Y  1.3.6.1.4.1.1466.115.121.1.30
  350.    Matching Rule Use Description   Y  1.3.6.1.4.1.1466.115.121.1.31
  351.    Mail Preference                 Y  1.3.6.1.4.1.1466.115.121.1.32
  352.    MHS OR Address                  Y  1.3.6.1.4.1.1466.115.121.1.33
  353.    Name And Optional UID           Y  1.3.6.1.4.1.1466.115.121.1.34
  354.    Name Form Description           Y  1.3.6.1.4.1.1466.115.121.1.35
  355.    Numeric String                  Y  1.3.6.1.4.1.1466.115.121.1.36
  356.  
  357.  
  358.  
  359.  
  360. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 6
  361.  
  362. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  363.  
  364.    Object Class Description        Y  1.3.6.1.4.1.1466.115.121.1.37
  365.    OID                             Y  1.3.6.1.4.1.1466.115.121.1.38
  366.    Other Mailbox                   Y  1.3.6.1.4.1.1466.115.121.1.39
  367.    Password                        Y  1.3.6.1.4.1.1466.115.121.1.40
  368.    Postal Address                  Y  1.3.6.1.4.1.1466.115.121.1.41
  369.    Protocol Information            Y  1.3.6.1.4.1.1466.115.121.1.42
  370.    Presentation Address            Y  1.3.6.1.4.1.1466.115.121.1.43
  371.    Printable String                Y  1.3.6.1.4.1.1466.115.121.1.44
  372.    Subtree Specification           Y  1.3.6.1.4.1.1466.115.121.1.45
  373.    Supplier Information            Y  1.3.6.1.4.1.1466.115.121.1.46
  374.    Supplier Or Consumer            Y  1.3.6.1.4.1.1466.115.121.1.47
  375.    Supplier And Consumer           Y  1.3.6.1.4.1.1466.115.121.1.48
  376.    Supported Algorithm             N  1.3.6.1.4.1.1466.115.121.1.49
  377.    Telephone Number                Y  1.3.6.1.4.1.1466.115.121.1.50
  378.    Teletex Terminal Identifier     Y  1.3.6.1.4.1.1466.115.121.1.51
  379.    Telex Number                    Y  1.3.6.1.4.1.1466.115.121.1.52
  380.    UTC Time                        Y  1.3.6.1.4.1.1466.115.121.1.53
  381.  
  382.    A suggested minimum upper bound on the number of characters in value 
  383.    with a string-based syntax, or the number of bytes in a value for all 
  384.    other syntaxes, may be indicated by appending this bound count inside 
  385.    of curly braces following the syntax name's OBJECT IDENTIFIER.  This
  386.    bound is not part of the syntax name itself.  For instance,
  387.    "1.3.6.4.1.1466.0{64}" suggests that server implementations should 
  388.    allow the string to be 64 characters long, although they may allow 
  389.    longer strings.  Note that a single character of the Directory String
  390.    syntax may be encoded in more than one byte since UTF-8 is a  
  391.    variable-length encoding.
  392.  
  393. 4.2.3. Syntax Description
  394.  
  395.    The following BNF may be used to associate a short description with
  396.    a syntax OBJECT IDENTIFIER. Implementors should note that future 
  397.    versions of this document may expand this definition to include 
  398.    additional terms.
  399.  
  400.       SyntaxDescription = "(" whsp
  401.           numericoid whsp
  402.           [ "DESC" qdstring ]
  403.           whsp ")"
  404.  
  405. 4.3. Object Classes
  406.  
  407.    The format for representation of object classes is defined in X.501 
  408.    [3]. In general every entry will contain an abstract class ("top" or 
  409.    "alias"), at least one structural object class, and zero or more 
  410.    auxiliary object classes.  Whether an object class is abstract,
  411.    structural or auxiliary is defined when the object class identifier 
  412.    is assigned.  An object class definition should not be changed 
  413.    without having a new identifier assigned to it.
  414.    
  415.    Object class descriptions are written according to the following BNF.
  416.    Implementors should note that future versions of this document may 
  417.    expand this definition to include additional terms.
  418.  
  419.  
  420. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 7
  421.  
  422. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  423.  
  424.       ObjectClassDescription = "(" whsp
  425.           numericoid whsp      ; ObjectClass identifier
  426.           [ "NAME" qdescrs ]
  427.           [ "DESC" qdstring ]
  428.           [ "OBSOLETE" whsp ]
  429.           [ "SUP" oids ]       ; Superior ObjectClasses
  430.           [ ( "ABSTRACT" / "STRUCTURAL" / "AUXILIARY" ) whsp ] 
  431.                                ; default structural
  432.           [ "MUST" oids ]      ; AttributeTypes
  433.           [ "MAY" oids ]       ; AttributeTypes
  434.       whsp ")"
  435.  
  436.    These are described as sample values for the subschema 
  437.    "objectClasses" attribute for a server which implements the LDAP 
  438.    schema. While lines have been folded for readability, the values 
  439.    transferred in protocol would not contain newlines.
  440.  
  441.    Servers SHOULD implement all the object classes referenced in 
  442.    section 7, except for extensibleObject, which is optional.
  443.  
  444.    Servers MAY implement additional object classes not listed in this 
  445.    document, and if they do so, SHOULD publish the definitions of the 
  446.    classes in the objectClasses attribute of their subschema entries.
  447.    Later documents may define additional object classes.
  448.  
  449. 4.4. Matching Rules
  450.  
  451.    Matching rules are used by servers to compare attribute values 
  452.    against assertion values when performing Search and Compare 
  453.    operations.  They are also used to identify the value to be added 
  454.    or deleted when modifying entries, and are used when comparing a 
  455.    purported distinguished name with the name of an entry.
  456.   
  457.    Most of the attributes given in this document will have an equality 
  458.    matching rule defined.
  459.  
  460.    Matching rule descriptions are written according to the following 
  461.    BNF.  Implementors should note that future versions of this document 
  462.    may have expanded this BNF to include additional terms.
  463.  
  464.       MatchingRuleDescription = "(" whsp
  465.           numericoid whsp  ; MatchingRule identifier
  466.           [ "NAME" qdescrs ]
  467.           [ "DESC" qdstring ]
  468.           [ "OBSOLETE" whsp ]
  469.           "SYNTAX" numericoid 
  470.       whsp ")"
  471.  
  472.    Values of the matchingRuleUse list the attributes which are suitable
  473.    for use with an extensible matching rule.
  474.  
  475.  
  476.  
  477.  
  478.  
  479.  
  480. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 8
  481.  
  482. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  483.  
  484.  
  485.       MatchingRuleUseDescription = "(" whsp
  486.           numericoid whsp  ; MatchingRule identifier
  487.           [ "NAME" qdescrs ]
  488.           [ "DESC" qdstring ]
  489.           [ "OBSOLETE" ]
  490.          "APPLIES" oids    ; AttributeType identifiers
  491.       whsp ")"
  492.  
  493.    Servers which support matching rules and the extensibleMatch SHOULD 
  494.    implement all the matching rules in section 8.
  495.  
  496.    Servers MAY implement additional matching rules not listed in this 
  497.    document, and if they do so, SHOULD publish the definitions of the 
  498.    matching rules in the matchingRules attribute of their 
  499.    subschema entries. If the server supports the extensibleMatch, then 
  500.    the server SHOULD publish the relationship between the matching rules
  501.    and attributes in the matchingRuleUse attribute.
  502.  
  503.    For example, a server which implements a privately-defined matching
  504.    rule for performing sound-alike matches on Directory String-valued 
  505.    attributes would include the following in the subschema entry 
  506.    (1.2.3.4.5 is an example, the OID of an actual matching rule would be 
  507.    different):
  508.  
  509.    matchingRule: ( 1.2.3.4.5 NAME 'soundAlikeMatch' 
  510.     SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' )
  511.  
  512.    If this matching rule could be used with the attributes 2.5.4.41 and
  513.    2.5.4.15, the following would also be present:
  514.  
  515.    matchingRuleUse: ( 1.2.3.4.5 APPLIES (2.5.4.41 $ 2.5.4.15) )
  516.  
  517.    A client could then make use of this matching rule by sending a 
  518.    search operation in which the filter is of the extensibleMatch choice,
  519.    the matchingRule field is "soundAlikeMatch", and the type field is 
  520.    "2.5.4.41" of "2.5.4.15".
  521.  
  522. 5. Attribute Types
  523.  
  524.    All LDAP server implementations MUST recognize the attribute types 
  525.    defined in this section.  These types are based on definitions in 
  526.    X.501(93) [3].
  527.  
  528.    Servers SHOULD also recognize all the attributes from section 5 of 
  529.    [12].
  530.  
  531. 5.1. Standard Operational Attributes
  532.  
  533.    Servers MUST maintain values of these attributes in accordance with 
  534.    the definitions in X.501(93).
  535.  
  536.  
  537.  
  538.  
  539.  
  540. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 9
  541.  
  542. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  543.  
  544. 5.1.1. createTimestamp
  545.  
  546.    This attribute SHOULD appear in entries which were created using 
  547.    the Add operation.
  548.  
  549.     ( 2.5.18.1 NAME 'createTimestamp' EQUALITY generalizedTimeMatch
  550.       ORDERING generalizedTimeOrderingMatch 
  551.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.24' 
  552.       SINGLE-VALUE NO-USER-MODIFICATION USAGE directoryOperation ) 
  553.  
  554. 5.1.2. modifyTimestamp
  555.  
  556.    This attribute SHOULD appear in entries which have been modified 
  557.    using the Modify operation.
  558.  
  559.     ( 2.5.18.2 NAME 'modifyTimestamp' EQUALITY generalizedTimeMatch
  560.       ORDERING generalizedTimeOrderingMatch 
  561.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.24' 
  562.       SINGLE-VALUE NO-USER-MODIFICATION USAGE directoryOperation ) 
  563.  
  564. 5.1.3. creatorsName
  565.  
  566.    This attribute SHOULD appear in entries which were created using 
  567.    the Add operation.
  568.  
  569.     ( 2.5.18.3 NAME 'creatorsName' EQUALITY distinguishedNameMatch 
  570.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.12' 
  571.       SINGLE-VALUE NO-USER-MODIFICATION USAGE directoryOperation ) 
  572.  
  573. 5.1.4. modifiersName
  574.  
  575.    This attribute SHOULD appear in entries which have been modified 
  576.    using the Modify operation.
  577.  
  578.     ( 2.5.18.4 NAME 'modifiersName' EQUALITY distinguishedNameMatch 
  579.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.12' 
  580.       SINGLE-VALUE NO-USER-MODIFICATION USAGE directoryOperation ) 
  581.  
  582. 5.1.5. subschemaSubentry
  583.  
  584.    The value of this attribute is the name of a subschema entry (or
  585.    subentry if the server is based on X.500(93)) in which the server
  586.    makes available attributes specifying the schema. 
  587.  
  588.     ( 2.5.18.10 NAME 'subschemaSubentry' 
  589.       EQUALITY distinguishedNameMatch 
  590.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.12' NO-USER-MODIFICATION 
  591.       SINGLE-VALUE USAGE directoryOperation )
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598.  
  599.  
  600. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 10
  601.  
  602. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  603.  
  604. 5.1.6. attributeTypes
  605.  
  606.    This attribute is typically located in the subschema entry.
  607.  
  608.     ( 2.5.21.5 NAME 'attributeTypes' 
  609.       EQUALITY objectIdentifierFirstComponentMatch
  610.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.3' USAGE directoryOperation ) 
  611.  
  612. 5.1.7. objectClasses
  613.  
  614.    This attribute is typically located in the subschema entry.
  615.  
  616.     ( 2.5.21.6 NAME 'objectClasses' 
  617.       EQUALITY objectIdentifierFirstComponentMatch
  618.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.37' USAGE directoryOperation ) 
  619.  
  620. 5.1.8. matchingRules
  621.  
  622.    This attribute is typically located in the subschema entry.
  623.  
  624.     ( 2.5.21.4 NAME 'matchingRules' 
  625.       EQUALITY objectIdentifierFirstComponentMatch
  626.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.30' USAGE directoryOperation ) 
  627.  
  628. 5.1.9. matchingRuleUse
  629.  
  630.    This attribute is typically located in the subschema entry.
  631.  
  632.     ( 2.5.21.8 NAME 'matchingRuleUse' 
  633.       EQUALITY objectIdentifierFirstComponentMatch
  634.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.31' USAGE directoryOperation ) 
  635.  
  636. 5.2. LDAP Operational Attributes
  637.  
  638.    These attributes are only present in the root DSE (see [1] and [3]).
  639.  
  640.    Servers MUST recognize these attribute names, but it is not required 
  641.    that a server provide values for these attributes, when the 
  642.    attribute corresponds to a feature which the server does not 
  643.    implement.
  644.  
  645. 5.2.1. namingContexts
  646.  
  647.    The values of this attribute correspond to naming contexts which this
  648.    server masters or shadows.  If the server does not master any 
  649.    information (e.g. it is an LDAP gateway to a public X.500 directory) 
  650.    this attribute will be absent.  If the server believes it contains 
  651.    the entire directory, the attribute will have a single value, and 
  652.    that value will be the empty string (indicating the null DN of the 
  653.    root). This attribute will allow a client to choose suitable base 
  654.    objects for searching when it has contacted a server.
  655.  
  656.     ( 1.3.6.1.4.1.1466.101.120.5 NAME 'namingContexts'
  657.      SYNTAX '1.3.6.1.4.1.1466.115.121.1.12' USAGE dSAOperation )
  658.  
  659.  
  660. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 11
  661.  
  662. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  663.  
  664. 5.2.2. altServer
  665.  
  666.    The values of this attribute are URLs of other servers which may be 
  667.    contacted when this server becomes unavailable.  If the server does 
  668.    not know of any other servers which could be used this attribute 
  669.    will be absent. Clients may cache this information in case their 
  670.    preferred LDAP server later becomes unavailable.
  671.  
  672.     ( 1.3.6.1.4.1.1466.101.120.6 NAME 'altServer'
  673.      SYNTAX '1.3.6.1.4.1.1466.115.121.1.26' USAGE dSAOperation )
  674.  
  675. 5.2.3. supportedExtension
  676.  
  677.    The values of this attribute are OBJECT IDENTIFIERs identifying the 
  678.    supported extended operations which the server supports.   
  679.  
  680.    If the server does not support any extensions this attribute will be 
  681.    absent.
  682.  
  683.     ( 1.3.6.1.4.1.1466.101.120.7 NAME 'supportedExtension'
  684.      SYNTAX '1.3.6.1.4.1.1466.115.121.1.38' USAGE dSAOperation )
  685.  
  686. 5.2.4. supportedControl
  687.  
  688.    The values of this attribute are the OBJECT IDENTIFIERS identifying 
  689.    controls which the server supports.  If the server does not 
  690.    support any controls, this attribute will be absent.
  691.  
  692.     ( 1.3.6.1.4.1.1466.101.120.13 NAME 'supportedControl'
  693.      SYNTAX '1.3.6.1.4.1.1466.115.121.1.38' USAGE dSAOperation )
  694.  
  695. 5.2.5. supportedSASLMechanisms
  696.  
  697.    The values of this attribute are the names of supported SASL
  698.    mechanisms which the server supports.  If the server does not 
  699.    support any mechanisms this attribute will be absent.
  700.  
  701.     ( 1.3.6.1.4.1.1466.101.120.14 NAME 'supportedSASLMechanisms'
  702.      SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' USAGE dSAOperation )
  703.  
  704. 5.2.6. supportedLDAPVersion
  705.  
  706.    The values of this attribute are the versions of the LDAP protocol 
  707.    which the server implements.
  708.  
  709.     ( 1.3.6.1.4.1.1466.101.120.15 NAME 'supportedLDAPVersion'
  710.      SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' USAGE dSAOperation )
  711.  
  712. 5.3. LDAP Subschema Attribute
  713.  
  714.    This attribute is typically located in the subschema entry.
  715.  
  716.  
  717.  
  718.  
  719.  
  720. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 12
  721.  
  722. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  723.  
  724. 5.3.1. ldapSyntaxes
  725.  
  726.    Servers MAY use this attribute to list the syntaxes which are 
  727.    implemented.  Each value corresponds to one syntax. 
  728.  
  729.     ( 1.3.6.1.4.1.1466.101.120.16 NAME 'ldapSyntaxes'
  730.       EQUALITY objectIdentifierFirstComponentMatch
  731.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.54' USAGE directoryOperation )
  732.  
  733. 6. Syntaxes
  734.  
  735.    Servers SHOULD recognize all the syntaxes described in this section. 
  736.    Each syntax begins with a sample value of the ldapSyntaxes attribute
  737.    which defines the OBJECT IDENTIFIER of the syntax.  The descriptions
  738.    of syntax names are not carried in protocol, and are not guaranteed
  739.    to be unique.
  740.  
  741. 6.1. Attribute Type Description
  742.  
  743.    ( 1.3.6.1.4.1.1466.115.121.1.3 DESC 'Attribute Type Description' )
  744.  
  745.    Values in this syntax are encoded according to the BNF given at the
  746.    start of section 4.2. For example,
  747.  
  748.         ( 2.5.4.0 NAME 'objectClass' 
  749.           SYNTAX '1.3.6.1.4.1.1466.115.121.1.38' )
  750.  
  751. 6.2. Binary
  752.  
  753.    ( 1.3.6.1.4.1.1466.115.121.1.5 DESC 'Binary' )
  754.  
  755.    Values in this syntax are encoded as described in section 4.2.1.
  756.  
  757. 6.3. Bit String
  758.  
  759.    ( 1.3.6.1.4.1.1466.115.121.1.6 DESC 'Bit String' )
  760.  
  761.    Values in this syntax are encoded according to the following BNF:
  762.  
  763.       bitstring = "'" *binary-digit "'B"
  764.  
  765.       binary-digit = "0" / "1"
  766.  
  767.    Example:
  768.   
  769.         '0101111101'B
  770.  
  771. 6.4. Boolean
  772.  
  773.    ( 1.3.6.1.4.1.1466.115.121.1.7 DESC 'Boolean' )
  774.  
  775.    Values in this syntax are encoded according to the following BNF:
  776.  
  777.       boolean = "TRUE" / "FALSE"
  778.  
  779.  
  780. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 13
  781.  
  782. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  783.  
  784.    Boolean values have an encoding of "TRUE" if they are logically true,
  785.    and have an encoding of "FALSE" otherwise.
  786.  
  787. 6.5. Certificate
  788.  
  789.    ( 1.3.6.1.4.1.1466.115.121.1.8 DESC 'Certificate' )
  790.  
  791.    Because of the changes from X.509(1988) and X.509(1993) and 
  792.    additional changes to the ASN.1 definition to support certificate 
  793.    extensions, no string representation is defined, and values in
  794.    this syntax MUST only be transferred using the binary encoding, by 
  795.    requesting or returning the attributes with descriptions 
  796.    "userCertificate;binary" or "caCertificate;binary".  The BNF notation 
  797.    in RFC 1778 for "User Certificate" is not recommended to be used.
  798.  
  799. 6.6. Certificate List
  800.  
  801.    ( 1.3.6.1.4.1.1466.115.121.1.9 DESC 'Certificate List' )
  802.  
  803.    Because of the incompatibility of the X.509(1988) and X.509(1993) 
  804.    definitions of revocation lists, values in this syntax MUST only be 
  805.    transferred using a binary encoding, by requesting or returning the 
  806.    attributes with descriptions "certificateRevocationList;binary" or 
  807.    "authorityRevocationList;binary".  The BNF notation in RFC 1778 for 
  808.    "Authority Revocation List" is not recommended to be used.
  809.  
  810. 6.7. Certificate Pair
  811.  
  812.    ( 1.3.6.1.4.1.1466.115.121.1.10 DESC 'Certificate Pair' )
  813.  
  814.    Because the Certificate is being carried in binary, values in this 
  815.    syntax MUST only be transferred using a binary encoding, by requesting 
  816.    or returning the attribute description "crossCertificatePair;binary". 
  817.    The BNF notation in RFC 1778 for "Certificate Pair" is not 
  818.    recommended to be used.
  819.  
  820. 6.8. Country String
  821.  
  822.    ( 1.3.6.1.4.1.1466.115.121.1.11 DESC 'Country String' )
  823.  
  824.    A value in this syntax is encoded the same as a value of 
  825.    Directory String syntax.  Note that this syntax is limited to values 
  826.    of exactly two printable string characters.
  827.  
  828.       CountryString  = p p
  829.  
  830.    Example:
  831.       US
  832.  
  833.  
  834.  
  835.  
  836.  
  837.  
  838.  
  839.  
  840. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 14
  841.  
  842. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  843.  
  844. 6.9. DN
  845.  
  846.    ( 1.3.6.1.4.1.1466.115.121.1.12 DESC 'DN' )
  847.  
  848.    Values in the Distinguished Name syntax are encoded to have the
  849.    representation defined in [5].  Note that this representation is not 
  850.    reversible to an ASN.1 encoding used in X.500 for Distinguished 
  851.    Names, as the CHOICE of any DirectoryString element in an RDN is no 
  852.    longer known.
  853.  
  854.    Examples (from [5]):
  855.       CN=Steve Kille,O=Isode Limited,C=GB
  856.       OU=Sales+CN=J. Smith,O=Widget Inc.,C=US
  857.       CN=L. Eagle,O=Sue\, Grabbit and Runn,C=GB
  858.       CN=Before\0DAfter,O=Test,C=GB
  859.       1.3.6.1.4.1.1466.0=#04024869,O=Test,C=GB
  860.       SN=Lu\C4\8Di\C4\87
  861.  
  862. 6.10. Directory String
  863.  
  864.    ( 1.3.6.1.4.1.1466.115.121.1.15 DESC 'Directory String' )
  865.  
  866.    A string in this syntax is encoded in the UTF-8 form of ISO 10646 
  867.    (a superset of Unicode).  Servers and clients MUST be prepared to 
  868.    receive encodings of arbitrary Unicode characters, including 
  869.    characters not presently assigned to any character set.
  870.  
  871.    For characters in the PrintableString form, the value is encoded as 
  872.    the string value itself.
  873.  
  874.    If it is of the TeletexString form, then the characters are 
  875.    transliterated to their equivalents in UniversalString, and encoded 
  876.    in UTF-8 [9].
  877.  
  878.    If it is of the UniversalString or BMPString forms [10], UTF-8 is 
  879.    used to encode them. 
  880.  
  881.    Note: the form of DirectoryString is not indicated in protocol 
  882.    unless the attribute value is carried in binary.  Servers which 
  883.    convert to DAP MUST choose an appropriate form.  Servers MUST NOT 
  884.    reject values merely because they contain legal Unicode characters 
  885.    outside of the range of printable ASCII.
  886.  
  887.    Example:
  888.  
  889.       This is a string of DirectoryString containing #!%#@
  890.  
  891.  
  892.  
  893.  
  894.  
  895.  
  896.  
  897.  
  898.  
  899.  
  900. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 15
  901.  
  902. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  903.  
  904. 6.11. DIT Content Rule Description
  905.  
  906.    ( 1.3.6.1.4.1.1466.115.121.1.16 DESC 'DIT Content Rule Description' )
  907.  
  908.    Values in this syntax are encoded according to the following BNF.
  909.    Implementors should note that future versions of this document 
  910.    may have expanded this BNF to include additional terms.
  911.  
  912.       DITContentRuleDescription = "("
  913.           numericoid   ; Structural ObjectClass identifier
  914.           [ "NAME" qdescrs ]
  915.           [ "DESC" qdstring ]
  916.           [ "OBSOLETE" ]
  917.           [ "AUX" oids ]    ; Auxiliary ObjectClasses
  918.           [ "MUST" oids ]   ; AttributeType identifiers
  919.           [ "MAY" oids ]    ; AttributeType identifiers
  920.           [ "NOT" oids ]    ; AttributeType identifiers
  921.          ")"
  922.  
  923. 6.12. Facsimile Telephone Number
  924.  
  925.    ( 1.3.6.1.4.1.1466.115.121.1.22 DESC 'Facsimile Telephone Number' )
  926.  
  927.    Values in this syntax are encoded according to the following BNF:
  928.  
  929.       fax-number    = printablestring [ "$" faxparameters ]
  930.  
  931.       faxparameters = faxparm / ( faxparm "$" faxparameters )
  932.  
  933.       faxparm = "twoDimensional" / "fineResolution" / 
  934.                 "unlimitedLength" /
  935.                 "b4Length" / "a3Width" / "b4Width" / "uncompressed"
  936.  
  937.    In the above, the first printablestring is the actual fax number,
  938.    and the faxparm tokens represent fax parameters.
  939.  
  940. 6.13. Fax
  941.  
  942.    ( 1.3.6.1.4.1.1466.115.121.1.23 DESC 'Fax' )
  943.  
  944.    Values in this syntax are encoded as if they were octet strings
  945.    containing Group 3 Fax images as defined in [7].
  946.  
  947. 6.14. Generalized Time
  948.  
  949.    ( 1.3.6.1.4.1.1466.115.121.1.24 DESC 'Generalized Time' )
  950.  
  951.    Values in this syntax are encoded as printable strings, represented 
  952.    as specified in X.208.  Note that the time zone must be specified.
  953.    It is strongly recommended that GMT time be used.  For example,
  954.  
  955.                 199412161032Z
  956.  
  957.  
  958.  
  959.  
  960. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 16
  961.  
  962. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  963.  
  964. 6.15. IA5 String
  965.  
  966.    ( 1.3.6.1.4.1.1466.115.121.1.26 DESC 'IA5 String' )
  967.  
  968.    The encoding of a value in this syntax is the string value itself.
  969.  
  970. 6.16. INTEGER
  971.  
  972.    ( 1.3.6.1.4.1.1466.115.121.1.27 DESC 'INTEGER' )
  973.  
  974.    Values in this syntax are encoded as the decimal representation 
  975.    of their values, with each decimal digit represented by the its 
  976.    character equivalent. So the number 1321 is represented by the 
  977.    character string "1321".
  978.  
  979. 6.17. JPEG
  980.  
  981.    ( 1.3.6.1.4.1.1466.115.121.1.28 DESC 'JPEG' )
  982.  
  983.    Values in this syntax are encoded as strings containing JPEG images in 
  984.    the JPEG File Interchange Format (JFIF), as described in [8].
  985.  
  986. 6.18. Matching Rule Description
  987.  
  988.    ( 1.3.6.1.4.1.1466.115.121.1.30 DESC 'Matching Rule Description' )
  989.  
  990.    Values of type matchingRules are encoded as strings according to
  991.    the BNF given in section 4.4. 
  992.  
  993. 6.19. Matching Rule Use Description
  994.  
  995.    ( 1.3.6.1.4.1.1466.115.121.1.31 DESC 'Matching Rule Use Description' )
  996.  
  997.    Values of type matchingRuleUse are encoded as strings according to
  998.    the BNF given in section 4.4.
  999.  
  1000. 6.20. MHS OR Address
  1001.  
  1002.    ( 1.3.6.1.4.1.1466.115.121.1.33 DESC 'MHS OR Address' )
  1003.  
  1004.    Values in this syntax are encoded as strings, according to the format 
  1005.    defined in [11].
  1006.  
  1007. 6.21. Name And Optional UID
  1008.  
  1009.    ( 1.3.6.1.4.1.1466.115.121.1.34 DESC 'Name And Optional UID' )
  1010.  
  1011.    Values in this syntax are encoded according to the following BNF:
  1012.  
  1013.       NameAndOptionalUID = DistinguishedName [ "#" bitstring ]
  1014.  
  1015.    Although the '#' character may occur in a string representation of a 
  1016.    distinguished name, no additional special quoting is done.
  1017.  
  1018.    This syntax has been added subsequent to RFC 1778.
  1019.  
  1020. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 17
  1021.  
  1022. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  1023.  
  1024.    Example:
  1025.  
  1026.       1.3.6.1.4.1.1466.0=#04024869,O=Test,C=GB#'0101'B
  1027.  
  1028. 6.22. Name Form Description
  1029.  
  1030.    ( 1.3.6.1.4.1.1466.115.121.1.35 DESC 'Name Form Description' )
  1031.  
  1032.    Values in this syntax are encoded according to the following BNF.
  1033.    Implementors should note that future versions of this document 
  1034.    may have expanded this BNF to include additional terms.
  1035.  
  1036.       NameFormDescription = "(" whsp
  1037.           numericoid whsp  ; NameForm identifier
  1038.           [ "NAME" qdescrs ]
  1039.           [ "DESC" qdstring ]
  1040.           [ "OBSOLETE" whsp ]
  1041.           "OC" woid         ; Structural ObjectClass
  1042.           "MUST" oids       ; AttributeTypes
  1043.           [ "MAY" oids ]    ; AttributeTypes
  1044.       whsp ")"
  1045.  
  1046. 6.23. Numeric String
  1047.  
  1048.    ( 1.3.6.1.4.1.1466.115.121.1.36 DESC 'Numeric String' )
  1049.  
  1050.    The encoding of a string in this syntax is the string value itself. 
  1051.    Example:
  1052.   
  1053.       1997
  1054.  
  1055. 6.24. Object Class Description
  1056.  
  1057.    ( 1.3.6.1.4.1.1466.115.121.1.37 DESC 'Object Class Description' )
  1058.  
  1059.    Values in this syntax are encoded according to the BNF in section 4.3.
  1060.  
  1061. 6.25. OID
  1062.  
  1063.    ( 1.3.6.1.4.1.1466.115.121.1.38 DESC 'OID' )
  1064.  
  1065.    Values in the Object Identifier syntax are encoded according to 
  1066.    the BNF in section 4.1 for "oid".
  1067.  
  1068.    Example:
  1069.  
  1070.        1.2.3.4
  1071.        cn
  1072.  
  1073.  
  1074.  
  1075.  
  1076.  
  1077.  
  1078.  
  1079.  
  1080. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 18
  1081.  
  1082. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  1083.  
  1084. 6.26. Other Mailbox
  1085.  
  1086.    ( 1.3.6.1.4.1.1466.115.121.1.39 DESC 'Other Mailbox' )
  1087.  
  1088.    Values in this syntax are encoded according to the following BNF:
  1089.  
  1090.       otherMailbox = mailbox-type "$" mailbox
  1091.  
  1092.       mailbox-type = printablestring
  1093.  
  1094.       mailbox = <an encoded IA5 String>
  1095.  
  1096.    In the above, mailbox-type represents the type of mail system in
  1097.    which the mailbox resides, for example "MCIMail"; and mailbox is 
  1098.    the actual mailbox in the mail system defined by mailbox-type.
  1099.  
  1100. 6.27. Postal Address
  1101.  
  1102.    ( 1.3.6.1.4.1.1466.115.121.1.41 DESC 'Postal Address' )
  1103.  
  1104.    Values in this syntax are encoded according to the following BNF:
  1105.  
  1106.       postal-address = dstring *( "$" dstring )
  1107.  
  1108.    In the above, each dstring component of a postal address value is
  1109.    encoded as a value of type Directory String syntax.  Backslashes and 
  1110.    dollar characters, if they occur in the component, are quoted as 
  1111.    described in section 4.2. 
  1112.  
  1113.    Example:
  1114.  
  1115.       1234 Main St.$Anytown, CA 12345$USA
  1116.       \241,000,000 Sweepstakes$PO Box 1000000$Anytown, CA 12345$USA
  1117.  
  1118. 6.28. Presentation Address
  1119.  
  1120.    ( 1.3.6.1.4.1.1466.115.121.1.43 DESC 'Presentation Address' )
  1121.  
  1122.    Values in this syntax are encoded with the representation described
  1123.    in RFC 1278 [6].
  1124.  
  1125. 6.29. Printable String
  1126.  
  1127.    ( 1.3.6.1.4.1.1466.115.121.1.44 DESC 'Printable String' )
  1128.  
  1129.    The encoding of a value in this syntax is the string value itself.  
  1130.    PrintableString is limited to the characters in production p of 
  1131.    section 4.1.
  1132.  
  1133.    Example:
  1134.  
  1135.       This is a PrintableString
  1136.  
  1137.  
  1138.  
  1139.  
  1140. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 19
  1141.  
  1142. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  1143.  
  1144. 6.30. Telephone Number
  1145.  
  1146.    ( 1.3.6.1.4.1.1466.115.121.1.50 DESC 'Telephone Number' )
  1147.  
  1148.    Values in this syntax are encoded as if they were Printable String 
  1149.    types.  Telephone numbers are recommended in X.520 to be in 
  1150.    international form.  
  1151.  
  1152.    Example:
  1153.  
  1154.       +1 512 305 0280
  1155.  
  1156. 6.31. UTC Time
  1157.  
  1158.    ( 1.3.6.1.4.1.1466.115.121.1.53 DESC 'UTC Time' )
  1159.  
  1160.    Values in this syntax are encoded as if they were printable
  1161.    strings with the strings containing a UTCTime value.  This is 
  1162.    historical; new attribute definitions SHOULD use GeneralizedTime 
  1163.    instead.
  1164.  
  1165. 6.32. LDAP Syntax Description
  1166.  
  1167.    ( 1.3.6.1.4.1.1466.115.121.1.54 DESC 'LDAP Syntax Description' )
  1168.  
  1169.    Values in this syntax are encoded according to the BNF in section
  1170.    4.2.3.
  1171.  
  1172. 7. Object Classes
  1173.  
  1174.    Servers SHOULD recognize all the names of standard classes from 
  1175.    section 7 of [12].
  1176.  
  1177. 7.1. Extensible Object Class
  1178.  
  1179.    The extensibleObject object class, if present in an entry, permits 
  1180.    that entry to optionally hold any attribute.  The MAY attribute list 
  1181.    of this class is implicitly the set of all attributes.
  1182.  
  1183.     ( 1.3.6.1.4.1.1466.101.120.111 NAME 'extensibleObject' 
  1184.       SUP top AUXILIARY )  
  1185.  
  1186.    The mandatory attributes of the other object classes of this entry 
  1187.    are still required to be present. 
  1188.  
  1189.    Note that not all servers will implement this object class, and those
  1190.    which do not will reject requests to add entries which contain this 
  1191.    object class, or modify an entry to add this object class.
  1192.  
  1193.  
  1194.  
  1195.  
  1196.  
  1197.  
  1198.  
  1199.  
  1200. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 20
  1201.  
  1202. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  1203.  
  1204. 8. Matching Rules
  1205.  
  1206.    Servers which implement the extensibleMatch filter SHOULD allow 
  1207.    all the matching rules listed in this section to be used in the 
  1208.    extensibleMatch.  In general these servers SHOULD allow matching 
  1209.    rules to be used with all attribute types known to the server, when
  1210.    the assertion syntax of the matching rule is the same as the value 
  1211.    syntax of the attribute.
  1212.  
  1213.    Servers MAY implement additional matching rules. 
  1214.  
  1215. 8.1. Matching Rules used in Equality Filters
  1216.  
  1217.    Servers SHOULD be capable of performing the following matching rules.
  1218.  
  1219.    For all these rules, the assertion syntax is the same as the value 
  1220.    syntax.
  1221.  
  1222.     ( 2.5.13.0 NAME 'objectIdentifierMatch' 
  1223.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.38' )
  1224.  
  1225.     ( 2.5.13.1 NAME 'distinguishedNameMatch' 
  1226.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.12' )
  1227.  
  1228.     ( 2.5.13.2 NAME 'caseIgnoreMatch' 
  1229.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' )
  1230.  
  1231.     ( 2.5.13.8 NAME 'numericStringMatch' 
  1232.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.36' )
  1233.  
  1234.     ( 2.5.13.11 NAME 'caseIgnoreListMatch' 
  1235.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.41' )
  1236.  
  1237.     ( 2.5.13.14 NAME 'integerMatch' 
  1238.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.27' )
  1239.  
  1240.     ( 2.5.13.16 NAME 'bitStringMatch' 
  1241.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.6' )
  1242.  
  1243.     ( 2.5.13.20 NAME 'telephoneNumberMatch' 
  1244.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.50' )
  1245.  
  1246.     ( 2.5.13.22 NAME 'presentationAddressMatch' 
  1247.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.43' )
  1248.  
  1249.     ( 2.5.13.23 NAME 'uniqueMemberMatch' 
  1250.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.34' )
  1251.  
  1252.     ( 2.5.13.24 NAME 'protocolInformationMatch'
  1253.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.42' )
  1254.  
  1255.     ( 2.5.13.27 NAME 'generalizedTimeMatch' 
  1256.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.24' )
  1257.  
  1258.  
  1259.  
  1260. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 21
  1261.  
  1262. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  1263.  
  1264.     ( 1.3.6.1.4.1.1466.109.114.1 NAME 'caseExactIA5Match' 
  1265.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.26' )
  1266.  
  1267.     ( 1.3.6.1.4.1.1466.109.114.2 NAME 'caseIgnoreIA5Match' 
  1268.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.26' )
  1269.  
  1270.    When performing the caseIgnoreMatch, caseIgnoreListMatch, 
  1271.    telephoneNumberMatch, caseExactIA5Match and caseIgnoreIA5Match,
  1272.    multiple adjoining whitespace characters are treated the same as an 
  1273.    individual space, and leading and trailing whitespace is ignored.
  1274.  
  1275. 8.2. Matching Rules used in Inequality Filters
  1276.  
  1277.    Servers SHOULD be capable of performing the following matching rules,
  1278.    which are used in greaterOrEqual and lessOrEqual filters.
  1279.  
  1280.     ( 2.5.13.28 NAME 'generalizedTimeOrderingMatch'
  1281.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.24' )
  1282.  
  1283.     ( 2.5.13.3 NAME 'caseIgnoreOrderingMatch' 
  1284.       SYNTAX '1.3.6.1.4.1.1466.115.121.1.15' )
  1285.  
  1286. 8.3. Matching Rules for Subschema Attributes
  1287.  
  1288.    Servers which allow subschema entries to be modified by clients MUST 
  1289.    support the following matching rule, as it is the equality matching
  1290.    rule for several of the subschema attributes. 
  1291.  
  1292.    ( 2.5.13.30 NAME 'objectIdentifierFirstComponentMatch'
  1293.      SYNTAX '1.3.6.1.4.1.1466.115.121.1.38' )
  1294.  
  1295.    Implementors should note that the assertion syntax of this matching 
  1296.    rule, an OID, is different from the value syntax of attributes for 
  1297.    which this is the equality matching rule.
  1298.  
  1299. 9. Security Considerations
  1300.  
  1301. 9.1. Disclosure
  1302.  
  1303.    Attributes of directory entries are used to provide descriptive 
  1304.    information about the real-world objects they represent, which can
  1305.    be people, organizations or devices.  Most countries have privacy
  1306.    laws regarding the publication of information about people.
  1307.  
  1308. 9.2. Use of Attribute Values in Security Applications
  1309.  
  1310.    The transformations of an AttributeValue value from its X.501 form to
  1311.    an LDAP string representation are not always reversible back to the 
  1312.    same BER or DER form.  An example of a situation which requires the 
  1313.    DER form of a distinguished name is the verification of an X.509 
  1314.    certificate.
  1315.  
  1316.  
  1317.  
  1318.  
  1319.  
  1320. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 22
  1321.  
  1322. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  1323.  
  1324.    For example, a distinguished name consisting of one RDN with one AVA,
  1325.    in which the type is commonName and the value is of the TeletexString 
  1326.    choice with the letters 'Sam' would be represented in LDAP as the
  1327.    string CN=Sam.  Another distinguished name in which the value is 
  1328.    still 'Sam' but of the PrintableString choice would have the same 
  1329.    representation CN=Sam.
  1330.  
  1331.    Applications which require the reconstruction of the DER form of the 
  1332.    value SHOULD NOT use the string representation of attribute syntaxes
  1333.    when converting a value to LDAP format.  Instead it SHOULD use the 
  1334.    Binary syntax.
  1335.  
  1336. 10. Acknowledgements
  1337.  
  1338.    This document is based substantially on RFC 1778, written by Tim 
  1339.    Howes, Steve Kille, Wengyik Yeong and Colin Robbins.
  1340.  
  1341.    Many of the attribute syntax encodings defined in this and 
  1342.    related documents are adapted from those used in the QUIPU and the 
  1343.    IC R3 X.500 implementations. The contributions of the authors of both 
  1344.    these implementations in the specification of syntaxes are gratefully 
  1345.    acknowledged.
  1346.  
  1347. 11. Authors Addresses
  1348.  
  1349.        Mark Wahl
  1350.        Critical Angle Inc.
  1351.        4815 West Braker Lane #502-385
  1352.        Austin, TX 78759
  1353.        USA
  1354.  
  1355.        EMail:  M.Wahl@critical-angle.com
  1356.  
  1357.        Andy Coulbeck
  1358.        Isode Limited
  1359.        The Dome, The Square
  1360.        Richmond  TW9 1DT
  1361.        United Kingdom
  1362.  
  1363.        Phone:  +44 181-332-9091
  1364.        EMail:  A.Coulbeck@isode.com
  1365.  
  1366.        Tim Howes
  1367.        Netscape Communications Corp.
  1368.        501 E. Middlefield Rd
  1369.        Mountain View, CA 94043
  1370.        USA
  1371.        
  1372.        Phone:  +1 415 254-1900
  1373.        EMail:   howes@netscape.com
  1374.  
  1375.  
  1376.  
  1377.  
  1378.  
  1379.  
  1380. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 23
  1381.  
  1382. INTERNET-DRAFT    draft-ietf-asid-ldapv3-attributes-05.txt   June 1997
  1383.  
  1384.        Steve Kille
  1385.        Isode Limited
  1386.        The Dome, The Square
  1387.        Richmond
  1388.        TW9 1DT
  1389.        UK
  1390.  
  1391.        Phone:  +44-181-332-9091
  1392.        EMail:  S.Kille@isode.com
  1393.  
  1394. 12. Bibliography
  1395.  
  1396.    [1] M. Wahl, T. Howes, S. Kille, "Lightweight Directory Access 
  1397.        Protocol (Version 3)", INTERNET-DRAFT 
  1398.        <draft-ietf-asid-ldapv3-protocol-05.txt>, June 1997.
  1399.  
  1400.    [2] The Directory: Selected Attribute Types.  ITU-T Recommendation 
  1401.        X.520, 1993.
  1402.  
  1403.    [3] The Directory: Models. ITU-T Recommendation X.501, 1993.
  1404.  
  1405.    [4] S. Bradner, "Key words for use in RFCs to Indicate Requirement 
  1406.        Levels", RFC 2119.
  1407.    
  1408.    [5] M. Wahl, S. Kille, "A UTF-8 String Representation of 
  1409.        Distinguished Names", INTERNET-DRAFT 
  1410.        <draft-ietf-asid-ldapv3-dn-03.txt>, April 1997.
  1411.  
  1412.    [6] S. Kille, "A String Representation for Presentation Addresses",
  1413.        RFC 1278, University College London, November 1991.
  1414.  
  1415.    [7] Terminal Equipment and Protocols for Telematic Services -
  1416.        Standardization of Group 3 facsimile apparatus for document
  1417.        transmission.  CCITT, Recommendation T.4.
  1418.  
  1419.    [8] JPEG File Interchange Format (Version 1.02).  Eric Hamilton, 
  1420.        C-Cube Microsystems, Milpitas, CA, September 1, 1992.
  1421.  
  1422.    [9] F. Yergeau, "UTF-8, a transformation format of Unicode and ISO 
  1423.        10646", RFC 2044, October 1996.
  1424.  
  1425.    [10] Universal Multiple-Octet Coded Character Set (UCS) - 
  1426.         Architecture and Basic Multilingual Plane, ISO/IEC 10646-1 : 
  1427.         1993 (With amendments).
  1428.  
  1429.    [11] S. Hardcastle-Kille, "Mapping between X.400(1988) / ISO 10021 
  1430.         and RFC 822", RFC 1327, May 1992.
  1431.  
  1432.    [12] M. Wahl, "X.500(93) User Schema for use with LDAP", 
  1433.         INTERNET-DRAFT <draft-ietf-asid-ldapv3schema-x500-01.txt>,
  1434.         June 1997.
  1435.  
  1436.    [13] D. Crocker, "Standard of the Format of ARPA-Internet Text
  1437.         Messages", STD 11, RFC 822, August 1982.
  1438.  
  1439. <draft-ietf-asid-ldapv3-attributes-05.txt> Expires: November 1997
  1440. Wahl,Coulbeck,Howes,Kille   LDAPv3 Attribute Syntax Defns.   Page 24
  1441.