[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: trying to extend my schema but ....
Hi,
Refering to RFC2252
AttributeTypeDescription = "(" whsp
numericoid whsp ; AttributeType identifier
[ "NAME" qdescrs ] ; name used in AttributeType
[ "DESC" qdstring ] ; description
[ "OBSOLETE" whsp ]
[ "SUP" woid ] ; derived from this other AttributeType
[ "EQUALITY" woid ; Matching Rule name
[ "ORDERING" woid ; Matching Rule name
[ "SUBSTR" woid ] ; Matching Rule name
[ "SYNTAX" whsp noidlen whsp ] ; see section 4.3
[ "SINGLE-VALUE" whsp ] ; default multi-valued
[ "COLLECTIVE" whsp ] ; default not collective
[ "NO-USER-MODIFICATION" whsp ]; default user modifiable
[ "USAGE" whsp AttributeUsage ]; default userApplications
whsp ")"
A you can see AttributeTypeDescription (same for ObjectClassDescription) are
enclosed between "(whsp" and "whsp)".
You have to insert a whitespace after each "(" and before each ")".
Hope this will reslove your problem
Jacques Landru
----- Original Message -----
From: "Samuel GAUTIER" <s.gautier@unidirect.fr>
To: <openldap-software@OpenLDAP.org>
Sent: Thursday, February 28, 2002 5:48 PM
Subject: trying to extend my schema but ....
> Hi,
> I'm trying to extend my openldap schema with private objectclass and
attributes :
> attributetype ( 1.1.2.1.1
> NAME 'birth'
> EQUALITY generalizedTimeMatch
> ORDERING generalizedTimeOrderingMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.24
> SINGLE-VALUE )
>
> attributetype ( 1.1.2.1.2
> NAME 'arrivee'
> EQUALITY generalizedTimeMatch
> ORDERING generalizedTimeOrderingMatch
> SYNTAX 1.3.6.1.4.1.1466.115.121.1.24
> SINGLE-VALUE )
> objectclass ( 1.1.2.2.1 NAME 'myDiwanPerson'
> DESC 'my Diwan persons'
> AUXILIARY
> MAY ( 'birth' $ 'arrivee' ) )
>
> objectclass ( 1.1.2.2.2 NAME 'myPerson'
> DESC 'Diwan persons'
> SUP inetOrgPerson
> MUST 'uid'
> MAY ( 'birth' $ 'arrivee' ) )
>
> and here is the error returned :
>
> /usr/local/etc/openldap/schema/test_ldap.schema: line 18: Unexpected token
before $ 'arrivee' ) )
>
> what's the matter with the syntax ?
>
> I refer to the administration guide of openldap, i've tryed many others
syntax but it doesn't work !
> Could you give me an example of your own experience ?
> please help !!!!
>
> Samuel GAUTIER
>