PingDirectory

Modifying the schema using the schema editor

You can create new attribute types or object classes in the schema editor.

When extending the schema, you shouldn’t modify native schema elements. Click the corresponding tab for the task that you want to perform.

Creating a new attribute type using the schema editor

You can create attribute types for any new properties that logically belong to objects in your directory. To create a new attribute type:

Steps

  1. Sign on to the admin console.

  2. In the sidebar, click LDAP Schema.

  3. On the Attribute Types tab, click Actions and select New Attribute Type.

    A screen capture showing the Actions list on the Attribute Types tab with the New Attribute Type option highlighted.
  4. Enter the properties for the new attribute type according to the tooltips.

  5. Click Save.

Creating a new object class using the schema editor

Creating a new object class is similar to creating a new attribute.

Before you begin

Make sure that any attributes that are part of the new object class are defined before creating the object class.

Steps

To create a new object class:

  1. Sign on to the admin console.

  2. In the sidebar, click LDAP Schema.

  3. On the Object Classes tab, click Actions and select New Object Class.

    A screen capture showing the Actions list on the Object Classes tab with the New Object Class option highlighted.
  4. Enter the properties for the new object class.

  5. In the Attributes box, specify the types of attributes that are required or optional for the new object class:

    1. In the Required Attributes list, select a required attribute.

    2. In the Optional Attributes list, select an optional attribute.

    3. Click the Plus icon () to add an item to either list. Click the Minus icon () to remove an item from either list.

  6. Click Save to create the new object class.

Modifying a schema definition

You can only edit read-write schema definitions in the PingDirectory server. These are usually marked as Custom in the schema editor.

To modify a schema definition:

Steps

  1. Sign on to the admin console.

  2. In the sidebar, click LDAP Schema.

  3. On the Object Classes tab, find the object class that you want to edit. For that row, click the More Options (…​) icon and select Edit.

    Screen capture showing the sampleObjectClass schema definition with the Edit item in the Actions list highlighted.
  4. Make your changes and click Save. The console displays a success message in the lower-left corner.

Deleting a schema definition

You can only delete schema definitions in the PingDirectory server that are read-write. These are usually marked as Custom in the schema editor. Ensure that the schema element you are deleting isn’t currently in use.

To delete a schema definition:

Steps

  1. Sign on to the admin console.

  2. In the sidebar, click LDAP Schema.

  3. On the Object Classes tab, find the object class that you want to delete. For that row, click the More Options (…​) icon and select Delete.

    Screen capture showing the sampleObjectClass schema definition with the Delete item in the More Options list highlighted.

    Result:

    A Warning dialog box opens.

  4. To delete the schema element, click Delete. The console displays a success message in the lower-left corner.

Using the schema editor utilities

The schema editor provides a Schema Utilities tab where you can import new schema elements from a file and check schema compliance.

About this task

If you are importing a schema file, the system automatically checks for compliance before the import. If the definition doesn’t meet schema compliance, the system displays an error message. However, you should check if your file is compliant with your schema before importing it.

To check schema compliance using the schema editor:

Steps

  1. Sign on to the admin console.

  2. In the sidebar, click LDAP Schema.

  3. On the Schema Utilities tab, click Validate Entries.

  4. In the Validate Entries modal, add your schema definition using one of two methods:

    Choose from:

    • To have the system check an LDIF file, click Load from file and select a file to upload.

      You can also drag and drop an LDIF file into the dotted Load from file area.

    • Copy and paste a new schema definition into the field.

  5. Click Validate.

    If there is a problem with your definition, you see an error message.