[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Schema Extension Question
Greets,
I am having some problems with my local.schema file. I am following the example from http://www.openldap.org/devel/admin/guide.html#Extending%20Schema
My IANA OID is 11092. With it's Internet public OID prefix, it is 1.3.6.1.4.1.11092 (is that right?). For my attributes, I set them to the OID based on the following hierarchy:
OID Assignment
1.1 Organization's OID
1.1.1 SNMP Elements
1.1.2 LDAP Elements
1.1.2.1 AttributeTypes
1.1.2.1.1 myAttribute
1.1.2.2 ObjectClasses
1.1.2.2.1 myObjectClass
I substitute 1.1 from above with 1.3.6.1.4.1.11092. So, my attributes will be 1.3.6.1.4.1.11092.2.1.x (where x is a sequential number, 1 for each attribute), and my objectClasses will be 1.3.6.1.4.1.11092.2.2.x (where x is a sequential number, 1 for each objectClass). My local.schema is as follows:
attributetype ( 1.3.6.1.4.1.11092.2.1.1 NAME 'myUniqueName'
DESC 'unique name with my organization'
EQUALITY caseIgnoreMatch
SUBSTR caseIgnoreSubstringsMatch
SYNTAX 1.3.6.1.4.1.1466.115.121.1.15
SINGLE-VALUE )
attributetype ( 1.3.6.1.4.1.11092.2.1.2 NAME 'myPhoto'
DESC 'a photo (application defined format)'
SYNTAX 1.3.6.1.4.1.1466.115.121.1.40
SINGLE-VALUE )
objectclass ( 1.3.6.1.4.1.11092.2.2.1 NAME 'myPerson'
DESC 'my person'
SUP inetOrgPerson
MUST ( 'myUniqueName' $ 'givenName' )
MAY 'myPhoto' )
When I try to run slapd, I get the following error:
[root@Geneva schema]# /usr/local/libexec/slapd
/usr/local/etc/openldap/schema/local.schema: line 17: Unexpected token before $ 'givenName' ) MAY 'myPhoto' )
ObjectClassDescription = "(" whsp
numericoid whsp ; ObjectClass identifier
[ "NAME" qdescrs ]
[ "DESC" qdstring ]
[ "OBSOLETE" whsp ]
[ "SUP" oids ] ; Superior ObjectClasses
[ ( "ABSTRACT" / "STRUCTURAL" / "AUXILIARY" ) whsp ]
; default structural
[ "MUST" oids ] ; AttributeTypes
[ "MAY" oids ] ; AttributeTypes
whsp ")"
[root@Geneva schema]#
I am doing something wrong. Does anyone know what it is?
Thanks,
Jason
Jason Mowat - Systems Analyst
St. Boniface General Hospital
jmowat@sbgh.mb.ca
v. 204.235.3676
f. 204.237.6229