directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Emmanuel Lecharny <elecha...@apache.org>
Subject Re: trouble creating own schema
Date Wed, 13 May 2009 08:48:32 GMT
Here is what I did :

I created a new project with the Schema plugin, named MySchema. I created a
new schema in tgis project, named schema1. In this schema, I created a new
object class named BPMObjekt, with an OID=1.3.6.1.4.1.18060.0.4.3.2. So far,
so good.

Then  I exported schema1 to a file as a ADS export. I obtained a LDIF file,
which was very similar to what Sascha generated. I connected to my ADS
instance, and injected this LDIF. I refreshed the schema (right click on
schema), disconnected and reconnected, and now, I was able to create an
entry using this new ObjectClass.

On Wed, May 13, 2009 at 10:30 AM, Sascha Janz <sascha.janz@gmx.net> wrote:

> Hi Stefan,
>
> yes. it's generated by the schema editor.
>
> i tried another one....but same effect.
>
> Regards
> Sascha
>
> # Generated by Apache Directory Studio on 13. Mai 2009 10:26:27
>
> # SCHEMA "SCHEMA"
> dn: cn=schema, ou=schema
> objectclass: metaSchema
> objectclass: top
> cn: schema
>
> dn: ou=attributeTypes, cn=schema, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: attributetypes
>
> dn: m-oid=1.3.6.1.4.1.18060.0.4.3.5, ou=attributeTypes, cn=schema,
> ou=schema
> objectclass: metaAttributeType
> objectclass: metaTop
> objectclass: top
> m-oid: 1.3.6.1.4.1.18060.0.4.3.5
> m-name: test1
>
> dn: ou=comparators, cn=schema, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: comparators
>
> dn: ou=ditContentRules, cn=schema, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: ditcontentrules
>
> dn: ou=ditStructureRules, cn=schema, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: ditstructurerules
>
> dn: ou=matchingRules, cn=schema, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: matchingrules
>
> dn: ou=matchingRuleUse, cn=schema, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: matchingruleuse
>
> dn: ou=nameForms, cn=schema, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: nameforms
>
> dn: ou=normalizers, cn=schema, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: normalizers
>
> dn: ou=objectClasses, cn=schema, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: objectClasses
>
> dn: m-oid=1.3.6.1.4.1.18060.0.4.3.6, ou=objectClasses, cn=schema, ou=schema
> objectclass: metaObjectClass
> objectclass: metaTop
> objectclass: top
> m-oid: 1.3.6.1.4.1.18060.0.4.3.6
> m-name: AAA
>
> dn: ou=syntaxCheckers, cn=schema, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: syntaxcheckers
>
> dn: ou=syntaxes, cn=schema, ou=schema
> objectclass: organizationalUnit
> objectclass: top
> ou: syntaxes
>
>
> ----- Original Message ----- From: "Stefan Seelmann" <seelmann@apache.org>
> To: <users@directory.apache.org>
> Sent: Wednesday, May 13, 2009 10:17 AM
> Subject: Re: trouble creating own schema
>
>
>  Hi Sascha,
>>
>> I don't think the LDIF is correct/complete:
>> - the attribute type is named 'Name', however this alias already exists
>> in the 'system' schema
>> - the attribute type lacks some information: m-syntax, m-equality, etc.
>> - the object class lacks some information: m-must, m-may,
>> m-supObjectClass, etc.
>>
>> Is this the LDIF generated by the schema editor?
>>
>> Kind Regards,
>> Stefan
>>
>>
>> Sascha Janz schrieb:
>>
>>> hi,
>>>
>>> i got some trouble creating my own schema. i use apache directory studio
>>> to create my schema. it's quite simple.  then i export it to an ldif file.
>>> switching on ldap view and import it. but the new objectclass "BPMObjekt" is
>>> not there! when i try to add a new entry "BPMObjekt" isn't there.
>>>
>>> can someone help please?
>>>
>>> ldif file is
>>>
>>> # Generated by Apache Directory Studio on 12. Mai 2009 13:30:57
>>>
>>> # SCHEMA "SCHEMA1"
>>> dn: cn=schema1, ou=schema
>>> objectclass: metaSchema
>>> objectclass: top
>>> cn: schema1
>>>
>>> dn: ou=attributeTypes, cn=schema1, ou=schema
>>> objectclass: organizationalUnit
>>> objectclass: top
>>> ou: attributetypes
>>>
>>> dn: m-oid=1.3.6.1.4.1.18060.0.4.3.1, ou=attributeTypes, cn=schema1,
>>> ou=schema
>>> objectclass: metaAttributeType
>>> objectclass: metaTop
>>> objectclass: top
>>> m-oid: 1.3.6.1.4.1.18060.0.4.3.1
>>> m-name: Name
>>>
>>> dn: ou=comparators, cn=schema1, ou=schema
>>> objectclass: organizationalUnit
>>> objectclass: top
>>> ou: comparators
>>>
>>> dn: ou=ditContentRules, cn=schema1, ou=schema
>>> objectclass: organizationalUnit
>>> objectclass: top
>>> ou: ditcontentrules
>>>
>>> dn: ou=ditStructureRules, cn=schema1, ou=schema
>>> objectclass: organizationalUnit
>>> objectclass: top
>>> ou: ditstructurerules
>>>
>>> dn: ou=matchingRules, cn=schema1, ou=schema
>>> objectclass: organizationalUnit
>>> objectclass: top
>>> ou: matchingrules
>>>
>>> dn: ou=matchingRuleUse, cn=schema1, ou=schema
>>> objectclass: organizationalUnit
>>> objectclass: top
>>> ou: matchingruleuse
>>>
>>> dn: ou=nameForms, cn=schema1, ou=schema
>>> objectclass: organizationalUnit
>>> objectclass: top
>>> ou: nameforms
>>>
>>> dn: ou=normalizers, cn=schema1, ou=schema
>>> objectclass: organizationalUnit
>>> objectclass: top
>>> ou: normalizers
>>>
>>> dn: ou=objectClasses, cn=schema1, ou=schema
>>> objectclass: organizationalUnit
>>> objectclass: top
>>> ou: objectClasses
>>>
>>> dn: m-oid=1.3.6.1.4.1.18060.0.4.3.2, ou=objectClasses, cn=schema1,
>>> ou=schema
>>> objectclass: metaObjectClass
>>> objectclass: metaTop
>>> objectclass: top
>>> m-oid: 1.3.6.1.4.1.18060.0.4.3.2
>>> m-name: BPMObjekt
>>>
>>> dn: ou=syntaxCheckers, cn=schema1, ou=schema
>>> objectclass: organizationalUnit
>>> objectclass: top
>>> ou: syntaxcheckers
>>>
>>> dn: ou=syntaxes, cn=schema1, ou=schema
>>> objectclass: organizationalUnit
>>> objectclass: top
>>> ou: syntaxes
>>>
>>>
>>>
>>>
>>>
>


-- 
Regards,
Cordialement,
Emmanuel L├ęcharny
www.iktek.com

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message