Click + next to Object Classes to expand the Object Classes panel. Use the scroll

Managing Directory Schema 20-17

3. In the left pane, expand the Content Rules list.

4. Select the content rule you want to modify. You can search for a content rule by entering a keyword in the search field, in the same way you search for object classes. See Searching for Object Classes by Using Oracle Directory Services Manager on page 20-11. 5. Modify values in the appropriate fields in the content rule tab. Choose the Add, Delete, or Edit icons in the toolbar above the Auxiliary Classes, Mandatory Attributes , or Optional Attributes list to add or delete an item. When adding, select the auxiliary class, mandatory attribute or optional attribute from the dialog. Use the search function if necessary

6. Choose Apply to make the changes effective or choose Revert to abandon the

changes. Viewing Matching Rules by Using Oracle Directory Services Manager

1. Invoke Oracle Directory Services Manager and connect to the Oracle Internet

Directory server as described in Invoking Oracle Directory Services Manager on page 7-9.

2. From the task selection bar, choose Schema.

3. Expand the Matching Rules list. Matching rules are shown in the list.

4. You can search for a matching rule by entering a keyword in the search field, in the

same way you search for object classes. See Searching for Object Classes by Using Oracle Directory Services Manager on page 20-11.

5. Select a matching rule to see its details in the matching rule tab page on the right.

Viewing Syntaxes by Using Oracle Directory Services Manager To view syntaxes by using Oracle Directory Services Manager: 1. Invoke Oracle Directory Services Manager and connect to the Oracle Internet Directory server as described in Invoking Oracle Directory Services Manager on page 7-9.

2. From the task selection bar, choose Schema.

3. Expand the Syntaxes list. Syntax names are shown in the list.

4. Select a syntax to see its details in the syntax tab page on the right. Managing Directory Schema by Using the Command Line This section contains the following topics: ■ Viewing the Schema by Using ldapsearch ■ Adding a New Object Class by Using Command-Line Tools Note: Matching rules cannot be modified. Note: Syntaxes cannot be modified. 20-18 Oracle Fusion Middleware Administrators Guide for Oracle Internet Directory ■ Adding a New Attribute to an Auxiliary or User-Defined Object Class by Using Command-Line Tools ■ Modifying Object Classes by Using Command-Line Tools ■ Adding and Modifying Attributes by Using ldapmodify ■ Deleting Attributes by Using ldapmodify ■ Indexing an Attribute for Which No Data Exists by Using ldapmodify ■ Dropping an Index from an Attribute by Using ldapmodify ■ Indexing an Attribute for Which Data Exists by Using the Catalog Management Tool ■ Adding a New Attribute With Attribute Aliases by Using the Command Line ■ Adding or Modifying Attribute Aliases in Existing Attributes by Using the Command Line ■ Deleting Attribute Aliases by Using the Command Line ■ Using Attribute Aliases with LDAP Commands ■ Managing Content Rules by Using Command-Line Tools ■ Viewing Matching Rules by Using ldapsearch ■ Viewing Syntaxes by Using by Using ldapsearch Viewing the Schema by Using ldapsearch You can write the schema to a file by typing: ldapsearch -h OID_host -p OID_port -q -L -D cn=orcladmin \ -b cn=subschemasubentry -s base objectclass= schema.ldif Adding a New Object Class by Using Command-Line Tools In this example, an LDIF input file, new_object_class.ldif, contains data similar to this: dn: cn=subschemasubentry changetype: modify add: objectclasses objectclasses: 2.16.840.1.113894.9999.12345 NAME myobjclass SUP top STRUCTURAL MUST cn sn MAY telephonenumber givenname myattr Be sure to leave the mandatory space between the opening and closing parentheses and the object identifier. To load the file, enter this command: ldapmodify -D cn=orcladmin -q -h myhost -p 3060 -f new_object_class.ldif This example: ■ Adds the structural object class named myobjclass ■ Gives it an object identifier of 2.16.840.1.113894.9999.12345. ■ Specifies top as its superclass ■ Specifies cn and sn as mandatory attributes