LDAP schemas, Oracle DSEE, OpenDS, OpenLDAP, Switch AAI and the rest…..
2011-06-29Context
For our Lab we are deploying a new service frontend (login.enterpriselab.ch) which allows elegible students, faculty members and partners with Switch AAI enabled accounts to create and manage an EnterpriseLab account. The frontend it self has been created as part of a Bachelor Diploma work and is now adapted by us to fit some changed requirements. As a backend we us ODSEE (Oracle Directory Server Enterprise Edition) 11g, the successor (or minor update) of Sun DSEE 7.
The actual stuff – LDAP schemas
To store the AAI attributes in LDAP Switch provides OpenLDAP schema files to extend the available LDAP attributes and objectclasses, but sadly the syntax which OpenLDAP uses is not supported in ODSEE. So conversions where in order. After a bit of searching around the web I found a few scripts which are supposed to do the task… some of them where better, some worse and others didn’t even work…
In the end I went with schema-convert.py by Ludovic Poitou, an ex- SUN/Oracle employee, now apparently working at ForgeRock. He wrote this script to convert OpenLDAP schemas to OpenDS schemas, which luckily are (almost) compatible with ODSEE.
The most important transformations required being:
- replacing keyword “attributetype” with “attributeTypes:”
- replacing keyword “objectClass” with “objectClasses:”
- “correct” indentation
- OID expansion
There only was one problem left after the conversion: ODSEE (in contrast to OpenDS, OpenLDAP and OpenDJ) does not support the full range of syntax definitions specified in RFC 2252 but only the ones defined as MUST, so it does not support SYNTAX 1.3.6.1.4.1.1466.115.121.1.36, probably better know as numericString which is used in the attributes “swissEduPersonMatriculationNumber” and “swissEduPersonDateOfBirth”. I decided to replace it with 1.3.6.1.4.1.1466.115.121.1.26 aka IA5String (the closest match available in this case) which allows not only numbers but also almost any ASCII characters to be stored.
Results
The results of the whole ODSEE installation and configuration procedure can be found in our wiki including some more links and references.
And here the resulting schema files:





