Product SiteDocumentation Site

Chapter 3. Designing the Directory Schema

3.1. Schema Design Process Overview
3.2. Standard Schema
3.2.1. Schema Format
3.2.2. Standard Attributes
3.2.3. Standard Object Classes
3.3. Mapping the Data to the Default Schema
3.3.1. Viewing the Default Directory Schema
3.3.2. Matching Data to Schema Elements
3.4. Customizing the Schema
3.4.1. When to Extend the Schema
3.4.2. Getting and Assigning Object Identifiers
3.4.3. Naming Attributes and Object Classes
3.4.4. Strategies for Defining New Object Classes
3.4.5. Strategies for Defining New Attributes
3.4.6. Deleting Schema Elements
3.4.7. Creating Custom Schema Files
3.4.8. Custom Schema Best Practices
3.5. Maintaining Consistent Schema
3.5.1. Schema Checking
3.5.2. Syntax Validation
3.5.3. Selecting Consistent Data Formats
3.5.4. Maintaining Consistency in Replicated Schema
3.6. Other Schema Resources
The site survey conducted in Chapter 2, Planning the Directory Data revealed information about the data which will be stored in the directory. The directory schema describes the types of data in the directory, so determining what schema to use reflects decisions on how to represent the data stored in the directory. During the schema design process, each data element is mapped to an LDAP attribute, and related elements are gathered into LDAP object classes. A well-designed schema helps to maintain the integrity of the directory data.
This chapter describes the directory schema and how to design a schema for unique organizational needs.
For information on replicating a schema, see Section 7.4.4, “Schema Replication”.

3.1. Schema Design Process Overview

During the schema design process, select and define the object classes and attributes used to represent the entries stored by Red Hat Directory Server. Schema design involves the following steps:
  1. Choosing predefined schema elements to meet as many of data needs as possible.
  2. Extending the standard Directory Server schema to define new elements to meet other remaining needs.
  3. Planning for schema maintenance.
The simplest and most easily-maintained option is to use existing schema elements defined in the standard schema provided with Directory Server. Choosing standard schema elements helps ensure compatibility with directory-enabled applications. Because the schema is based on the LDAP standard, it has been reviewed and agreed to by a wide number of directory users.