[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Question about attribute name



Gavin Henry wrote:

> Hmmm, that's exactly what I found and quoted this morning.
> 
> ABNF has:
> 
>   DOT     = %x2E ; period (".")
> 
> So that _should_ be legal?

I read it this way:

<rfc4512>
2.5.  Attribute Descriptions

   An attribute description is composed of an attribute type (see
   Section 2.5.1) and a set of zero or more attribute options (see
   Section 2.5.2).

   An attribute description is represented by the ABNF:

      attributedescription = attributetype options
      attributetype = oid
      options = *( SEMI option )
      option = 1*keychar
</rfc4512>

let's forget about options and focus on attributetype:

<rfc4512>
      oid = descr / numericoid
</rfc4512>

let's also forget about numericoid and focus on descr:

<rfc4512>
      descr = keystring
</rfc4512>

<rfc4512>
      keystring = leadkeychar *keychar
      leadkeychar = ALPHA
      keychar = ALPHA / DIGIT / HYPHEN
        ...
      ALPHA   = %x41-5A / %x61-7A   ; "A"-"Z" / "a"-"z"
      DIGIT   = %x30 / LDIGIT       ; "0"-"9"
        ...
      HYPHEN  = %x2D ; hyphen ("-")
</rfc4512>

That's it.  There's no room for other chars.

p.



Ing. Pierangelo Masarati
OpenLDAP Core Team

SysNet s.r.l.
via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
---------------------------------------
Office:  +39 02 23998309
Mobile:  +39 333 4963172
Email:   pierangelo.masarati@sys-net.it
---------------------------------------