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

4. Select the schema element to delete from the list. Only custom (user-defined) schema can be
deleted in the Directory Server Console.
5. Click the Delete button at the bottom of the window.
6. Confirm the deletion.
CAUTION:
The server immediately deletes the schema element. There is no undo.
10.5 Managing schema using ldapmodify
As with the Directory Server Console, ldapmodify can be used to add, edit, and delete custom
schema elements. ldapmodify also modifies the default custom schema file for a Directory Server
instance, 99user.ldif.
10.5.1 Creating attributes
Create a custom attribute as an attributetypes attribute in the cn=schema entry. The
attributetypes attribute has the format:
attributetypes: ( definition )
The definition contains five components:
An OID, usually a dot-separated number
A unique name, in the form NAME name
A description, in the form DESC description
The OID for the syntax of the attribute values, listed in Table 49 (page 430), in the form SYNTAX
OID
Optionally, the source where the attribute is defined
The attribute definition is added to the custom schema file, 99user.ldif, by running an LDAP
command and modifying the cn=schema entry. For example:
ldapmodify -h example.com -p 389 -D "cn=directory manager" -w secret
dn: cn=schema
changetype: modify
add: attributetypes
attributetypes: ( 1.2.3.4.5.6.1 NAME 'dateofbirth' DESC 'For employee
birthdays' SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUED X-ORIGIN
'Example defined')
10.5.2 Creating object classes
An object class definition is an objectclasses attribute for the cn=schema entry. The
objectclasses attribute has the format:
objectclasses: ( definition )
440 Managing the Directory Schema