HP-UX Directory Server Administrator Guide HP-UX Directory Server Version 8.1 (5900-3098, May 2013)

For example:
objectclasses: ( 2.16.840.1133730.2.123 NAME 'examplePerson' DESC 'Ex\
ample Person Object Class' SUP inetorgPerson AUXILIARY MUST cn MAY
(exampleDateOfBirth $ examplePreferredOS) )
Example 22 “Example schema fileshows a simplified schema file.
Example 22 Example schema file
dn: cn=schema
attributetypes: ( 2.16.840.1133730.1.123 NAME 'dateofbirth' DESC 'For em\
ployee birthdays' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 X-ORIGIN 'Example
defined')
objectclasses: ( 2.16.840.1133730.2.123 NAME 'examplePerson' DESC 'Ex\
ample Person Object Class' SUP inetorgPerson AUXILIARY MAY (dateofbirth) )
Custom schema files should be added to the Directory Server instance's schema directory,
/etc/opt/dirsrv/slapd-instance_name/schema. The schema in these files are not loaded
adn available to the server unless the server is restarted or a dynamic reload task is run.
10.7 Dynamically reloading schema
By default, the schema files used by the Directory Server instance are loaded into the directory
when it is started. This means that any new schema files added to the schema directory are not
available for use unless the server is restarted. The Directory Server has a task that manually reloads
the full schema for the Directory Server instance, including custom files, without requiring a server
restart.
The schema reload task can be initiated in two ways:
Using the schema-reload.pl script
Adding a cn=schema reload task entry using ldapmodify
10.7.1 Reloading schema using schema-reload.pl
The schema-reload.pl script launches a special task to reload all the schema files used by a
specific Directory Server instance. This allows custom schema files to be loaded dynamically without
having to add schema elements to 99user.ldif.
1. Run the script, binding as the Directory Manager.
/opt/dirsrv/slapd-instance_name/schema-reload.pl \
-D "cn=Directory Manager" -w secret
The Directory Server responds that it has added the new reload task entry.
adding new entry cn=schema_reload_2009_1_6_17_52_4, cn=schema reload
task, cn=tasks, cn=config
This reloads the schema from the default schema directory,
/etc/opt/dirsrv/slapd-instance_name/schema, which is recommended. It is also
possible to specify a different directory using the -d option.
/opt/dirsrv/slapd-instance_name/schema-reload.pl -D "cn=Directory Manager" \
-w password -d /export/custom-schema
IMPORTANT:
All the schema is reloaded with the schema reload task, not just the newest schema or modified
schema. This means that whatever directory is specified should contain the full schema for the
Directory Server, or the Directory Server instance may have serious performance problems.
The schema-reload.pl is described in more detail in the HP-UX Directory Server configuration,
command, and file reference.
10.7 Dynamically reloading schema 443