From: Chris R. <chr...@me...> - 2002-01-10 16:10:03
|
John Berthels <joh...@ne...> wrote: > Hi folks. > > Sorry not to comment on the schema stuff. New changes look great. I'd > like to ask about the following though: > > > Peter Marschall wrote: > >> > I have two questions about the frmat of schema entries that may be a >> > little off topic, but bay also affect perl-ldap: >> > >> > * Is ' (single quote) legal inside qdstrings in schema definitions >> > RFC2252 does not explicitely deny it. It simply gives the >> > following definitions >> > >> > dstring = 1*utf8 >> > qdstring = whsp "'" dstring "'" whsp >> > >> > without defining utf8 further >> > Since a single quote is a utf8 character, this could mean >> > that single quotes inside qdstrings are really allowed. >> > So >> > DESC 'New Object's FS Rights' >> > might be a legal description. > > Yep. But the question for me is whether ( and ) and whitespace are > permitted (which they presumably are although I must confess to not having > checked utf8 :-) because that makes the whole thing technically unparsable > unless I am missing something. > > What about: > > attributeTypes: ( 2.16.840.1.113719.1.56.4.1.1 NAME 'newObjectSFSRights' > DESC 'Standard Attribute' SYNTAX 2.16.840.1.113719.1.1.5.1.15{64512} > X-NDS_NAME 'New Object' s FS Rights - correct this time :-)' > X-NDS_NOT_SCHED_SYNC_IMMEDIATE '1' ) > > ? How can you parse that sensibly? (Even in perl...) > > The '1*utf8' seems to make a nonsense of any possibility of parsing. Nod. IIRC there is some IETF work going on to fix that ABNF. It actually cannot be parsed correctly for more reasons - whsp is defined as optional space. For example this monstrosity is legal: ( 2.16.840.1.113719.1.56.4.1.1 NAME 'newObjectSFSRights' DESCNAMESUPSYNTAXBORGCOLLECTIVE SUP anotherAttribute ) Cheers, Chris |