You can add or edit a directory entry directly through DSCC on the Entry Management tab page for a Directory Server instance. There are buttons that launch wizards for adding and editing entries.
The following procedure explains how to extend entries, adding additional user-defined attributes to existing entries. For example, a new application accessing the directory requires that you store additional information on each entry, and you need to create a few entries for testing purposes.
Use the schema wizard to set up a user-defined object class that specifies the attributes that you can add to the entry.
Click the link to the Directory instance; click the Schema tab; scroll to User-Defined Object Classes, and click the Add button to open the wizard.
Alternatively, you can update the directory schema over LDAP or by editing configuration files. For more information, see Chapter 11, Directory Server Schema.
You must create the object class, because adding an object class attribute value to an entry is the LDAP way of extending the list of attributes the entry can have.
From the Entry Management tab, and find the entry to update.
When you edit the entry, use the Text View.
The form-based editor shows you all the attributes you can edit, but not object classes you can add to extend the entry.
In the Text View, add the object class and attributes you want in LDIF format.
For example, if you extend the schema with example-objectclass that allows the example-attribute attribute to add to the LDIF.
dn: uid=bjensen,ou=People,dc=example,dc=com cn: Babs Jensen mail: bjensen@example.com objectclass: top objectclass: person objectclass: organizationalPerson objectclass: inetOrgPerson objectclass: example-objectclass sn: Jensen uid: bjensen example-attribute: Extended entry |
The Text View editor has a check routine built in, so you can check that your edits are valid with a single click. When everything is the way you want it, apply your changes.