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

RE: OID can not be string any more? From which version?



You can use lines like
	objectidentifier mybase 1.2.3.4
	objectidentifier myattrs mybase:0
	objectidentifier myobjs mybase:1
	objectidentifier syntaxes 1.3.6.1.4.1.1466.115.121.1
	objectidentifier OIDsyntax syntaxes:38

to create macros to represent OIDs and then in your schema definitions use
them like so:
	attributetype ( myattrs:1 NAME 'myFirstAttribute'
		DESC 'Something interesting'
		EQUALITY objectIdentifierMatch
		SYNTAX OIDsyntax )

This would be expanded internally into
	attributetype ( 1.2.3.4.0.1 NAME 'myFirstAttribute'
		DESC 'Something interesting'
		EQUALITY objectIdentifierMatch
		SYNTAX 1.3.6.1.4.1.1466.115.121.1.38 )

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc  
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Zengfa Gao

> What do you mean of OID macro? Could you please give
> me an example?
> 
> 
> --- "Kurt D. Zeilenga" <Kurt@OpenLDAP.org> wrote:
> > At 10:41 AM 2001-12-06, Zengfa Gao wrote:
> > >Could you please tell me from which version String
> > OID
> > >is not supported?
> > 
> > Well, an OID macro is allowed currently, see
> > slapd.conf(5)
> > "objectidentifier" for details.  I don't recall
> > exactly
> > when it was introduced or when it was broken, but it
> > was
> > recently fixed (2.0.14 & 2.0.16).  It works as
> > intended
> > in 2.0.18.
> > 
> > >How can I download old version of OpenLDAP from
> > >www.openldap.org?
> > 
> > ftp://ftp.openldap.org/pub/OpenLDAP/
> > http://www.openldap.org/software/download/OpenLDAP/
> > 
> > or OpenLDAP Source Repository (AnonCVS).
> > 
> > Kurt
> > 
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
>