directory-api mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matthew Swift <Matthew.Sw...@Sun.COM>
Subject Re: making client schema aware
Date Wed, 03 Feb 2010 15:50:05 GMT

On 03/02/10 13:30, Emmanuel LŽcharny wrote:
> [...]
>> - The schema can be loaded/extended from LDIF file
> Do you have the format you are using ?

The format of our schema files is pretty straightforward: just plain old 
LDIF. For example:

dn: cn=schema
objectClass: top
objectClass: ldapSubentry
objectClass: subschema
attributeTypes: ( NAME 'name' EQUALITY caseIgnoreMatch
   SUBSTR caseIgnoreSubstringsMatch SYNTAX{32768}
   X-ORIGIN 'RFC 4519' )
attributeTypes: ( NAME 'distinguishedName'
   EQUALITY distinguishedNameMatch SYNTAX
   X-ORIGIN 'RFC 4519' )

So it is possible to import OpenDS schema using an LDIF reader. Via this 
mechanism we support loading of all schema elements with the exception 
of those that require implementation code. Specifically, matching rules 
are not loaded this way nor are most* syntaxes - instead these are 
defined in the server configuration together with a reference to the 
Java class implementing rule/syntax functionality. We then expose the 
schema to clients via a single cn=schema entry which includes all the 
loaded schema elements as well as virtual attributes for the syntaxes 
and matching rules.

* it is possible to define new syntaxes via the schema using the schema 
extensions (meta-syntaxes) that Ludo presented at LDAPcon

View raw message