directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Seelmann <>
Subject Re: [Shared] Relaxing the schema parsers
Date Thu, 05 Jun 2008 16:16:56 GMT

I just want to ask, how we should handle OID macros in OpenLDAP schema
files. Here is an example:

  objectIdentifier NetscapeRoot 2.16.840.1.113730
  objectIdentifier NetscapeLDAP NetscapeRoot:3
  objectIdentifier NetscapeLDAPattributeType NetscapeLDAP:1
  attributetype ( NetscapeLDAPattributeType:198
        NAME 'memberURL'
        DESC 'Identifies ...'
        SUP labeledURI )

Right now the parser just fails if it finds an objectIdentifier line. I
see two ways:

The parser substitutes those macros internally and returns attribute
types and object classes with the resolved OIDs

Add a new data structure for those Object Identifiers, keep the symbolic
names within attribute types and object classes and let the caller
handle the macros.

Any opinions?

Kind Regards,

Howard Chu wrote:
> Emmanuel Lecharny wrote:
>> I would like to add some more features, like accepting a name for
>> syntaxes. Nothing is less painfull than to have an OID to express that
>> an AttributeType is a IA5String !
> I was going to suggest that as well; the OID macros we use in OpenLDAP
> really make life a lot easier.

View raw message