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

Re: (ITS#5662) Comments in schema declarations separated by semicolon

michael@stroeder.com wrote:
> Full_Name: Michael Ströder
> Version: HEAD
> OS:
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (
> It might be helpful if the schema config file parser would accept lines with
> comments at the end separated by semicolon.

The parser doesn't know anything about line endings. Remember, lines with 
leading white space are continuations of the previous line. The schema parser 
is just fed a single string as one long line, the line endings were removed 
long before it ever got there.

> Example (derived from http://tools.ietf.org/draft/draft-dally-acp133-and-ldap/
> using mainly OIDs):
> attributetype ( 2.16.840. NAME 'transferStation'
>       EQUALITY  ; booleanMatch
>       SINGLE-VALUE )

It would be smarter to just standardize OID macros for each of these OIDs, the 
way X.500 did, and not require the humans reading these specs to memorize 
these numeric OIDs...

I don't see any straightforward way to modify our parser as you're suggesting. 
Unless someone else feels like jumping in, I think we should reject this ITS.

   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/