7.3. Getting Schema Information

The root DSE attribute subschemaSubentry shows the DN of the entry holding LDAP schema definitions. LDAP schema defines the object classes, attributes types, attribute value syntaxes, matching rules and so on that constrain entries held by the LDAP server.

The org.forgerock.opendj.ldap.schema package is devoted to constructing and querying LDAP schemas. The Schema class for example lets you readSchemaForEntry() to get the relevant schema from the subschema subentry, and then validateEntry() to check an entry your application has constructed before sending the entry to the server.