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

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

 



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.

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




[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux