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

Mitja Mihelic( mitja.mihelic at arnes.si
Wed Nov 25 14:22:37 UTC 2009


Is it possible to use references for attributeTypes/objectClasses
definitions in the 389DS schemas ?
Like: schacAttributeType:1 instead of
Of course the OID for schacAttributeType should be defined beforehand.

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

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

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

The script that converted the schema did not take the references into
so I ended up with attribute names like:
attributeTypes: (
 NAME 'schacMotherTongue'

When trying to load the schema into the 389DS it complained:
[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
[25/Nov/2009:14:48:15 +0100] schema_reload - schema file validation failed
[25/Nov/2009:14:48:15 +0100] schemareload - Schema validation failed.

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


More information about the Fedora-directory-users mailing list