3.3 Mapping the data to the default schema

The data identified during the site survey, as described in “Performing a site survey”, must be mapped to the existing default directory schema. This section describes how to view the existing default schema and provides a method for mapping the data to the appropriate existing schema elements.

If there are elements in the schema that do not match the existing default schema, create custom object classes and attributes. See “Customizing the schema” for more information.

3.3.1 Viewing the default directory schema

The default directory schema is stored in /etc/opt/dirsrv/schema.

This directory contains all the common schema for the Directory Server. The LDAPv3 standard user and organization schema can be found in the 00core.ldif file. The configuration schema used by earlier versions of the directory can be found in the 50ns-directory.ldiffile.

CAUTION:Do not modify the default directory schema.

For more information about each object class and attribute found in directory, see the HP-UX Directory Server schema reference. For more information about the schema files and directory configuration attributes, see the HP-UX Directory Server configuration, command, and file reference.

3.3.2 Matching data to schema elements

The data identified in the site survey now needs to be mapped to the existing directory schema. This process involves the following steps:

1.Identify the type of object the data describes.

Select an object that best matches the data described in the site survey. Sometimes, a piece of data can describe multiple objects. Determine if the difference needs to be noted in the directory schema.

For example, a telephone number can describe an employee's telephone number and a conference room's telephone number. Determine if these different sorts of data need to be considered different objects in the directory schema.

2.Select a similar object class from the default schema.

It is best to use the common object classes, such as groups, people, and organizations.

3.Select a similar attribute from the matching object class.

Select an attribute from within the matching object class that best matches the piece of data identified in the site survey.

4.Identify the unmatched data from the site survey.

If there are some pieces of data that do not match the object classes and attributes defined by the default directory schema, customize the schema. See “Customizing the schema” for more information.

For example, the following table maps directory schema elements to the data identified during the site survey in Chapter 2 “Planning the directory data”:

Table 3-2 Data mapped to default directory schema

Data

Owner

Object Class

Attribute

Employee name

HR

person

cn (commonName)

 

 

 

 

User password

IS

person

userPassword

 

 

 

 

30 Designing the directory schema