Re: [389-users] Schema conversion from OpenLDAP to 389DS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Mitja Mihelic wrote:
Hi!

Is it possible to use references for attributeTypes/objectClasses
definitions in the 389DS schemas ?
Like: schacAttributeType:1 instead of 1.3.6.1.4.1.25178.1.2.1
Of course the OID for schacAttributeType should be defined beforehand.
No, that is not supported in 389. Please file a bug/enhancement request for the Schema category at https://bugzilla.redhat.com/enter_bug.cgi?product=389
Please read the text bellow for a better explanation.

I was trying to convert the OpenLDAP SCHAC schema into a 389DS schema by
using the ol2rhds.pl script available on http://directory.fedoraproject.org
The converted file did not exactly want to play ball so it had to be
modified.

The OpenLDAP version of the schema uses references instead of numbers
for OIDs:

    * objectIdentifier TERENA 1.3.6.1.4.1.25178
    * objectIdentifier schac TERENA:1
    * objectIdentifier schacObjectClass schac:1
    * objectIdentifier schacAttributeType schac:2

The script that converted the schema did not take the references into
account
so I ended up with attribute names like:
<snip>
attributeTypes: (
 schacAttributeType:1
 NAME 'schacMotherTongue'
</snip>

When trying to load the schema into the 389DS it complained:
<snip>
[25/Nov/2009:14:48:13 +0100] schemareload - Schema reload task starts
(schema dir: default) ...
[25/Nov/2009:14:48:15 +0100] dse - The entry cn=schema in file
/etc/dirsrv/slapd-import/schema/91schac.ldif is invalid, error code 21
(Invalid syntax) - attribute type schacMotherTongue The OID
"schacMotherTongue:1" must begin and end with a digit, or be
"schacMotherTongue-oid"
[25/Nov/2009:14:48:15 +0100] schema_reload - schema file validation failed
[25/Nov/2009:14:48:15 +0100] schemareload - Schema validation failed.
</snip>

After I manually replaced the references with OIDs it worked. OK, I also
had to modify a couple of attribute syntax definitions :)

Regards,
Mitja

--
389 users mailing list
389-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users

<<attachment: smime.p7s>>

--
389 users mailing list
389-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-directory-users

[Index of Archives]     [Fedora Directory Users]     [Fedora Directory Devel]     [Fedora Announce]     [Fedora Legacy Announce]     [Kernel]     [Fedora Legacy]     [Share Photos]     [Fedora Desktop]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux