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 at redhat.com > https://www.redhat.com/mailman/listinfo/fedora-directory-users > -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3258 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.fedoraproject.org/pipermail/389-users/attachments/20091125/03a10dfc/attachment.bin