From the task selection bar, choose Schema.

20-20 Oracle Fusion Middleware Administrators Guide for Oracle Internet Directory changetype: modify add: attributetypes attributetypes: 1.2.3.4.5 NAME myattr SYNTAX 1.3.6.1.4.1.1466.115.121.1.38 To specify an attribute as single-valued, include in the attribute definition entry in the LDIF file the keyword SINGLE-VALUE with surrounding white space. You can find a given syntax Object ID by using either Oracle Directory Services Manager or the ldapsearch command line tool. Deleting Attributes by Using ldapmodify To delete an attribute by using ldapmodify, type a command similar to the following at the system prompt: ldapmodify -D cn=orcladmin -q -h host -p port -f ldif_file_name The LDIF file contains data similar to this: dn: cn=subschemasubentry changetype: modify delete: attributetypes attributetypes: 1.2.3.4.5 NAME myattr SYNTAX 1.3.6.1.4.1.1466.115.121.1.38 You can find a given syntax Object ID by using either Oracle Directory Services Manager or the ldapsearch command line tool. Indexing an Attribute for Which No Data Exists by Using ldapmodify After you define a new attribute in the schema, you can add it to the catalog entry by using ldapmodify. See Also: ■ The ldapmodify command-line tool reference in Oracle Fusion Middleware Reference for Oracle Identity Management for a detailed explanation of ldapmodify and its options ■ Viewing Syntaxes by Using by Using ldapsearch on page 20-26 for instructions on how to view syntaxes by using either Oracle Directory Services Manager or ldapsearch Note: You can delete only user-defined attributes. Do not delete attributes from the base schema. See Also: ■ The ldapmodify command-line tool reference in Oracle Fusion Middleware Reference for Oracle Identity Management for a detailed explanation of ldapmodify and its options ■ Viewing Syntaxes by Using by Using ldapsearch on page 20-26 or Viewing Syntaxes by Using Oracle Directory Services Manager on page 20-17 for instructions on how to view syntaxes Managing Directory Schema 20-21 To add an attribute for which no directory data exists, import an LDIF file by using ldapmodify. For example, to add a new attribute foo that has already been defined in the schema, import the following LDIF file by using ldapmodify: dn: cn=catalogs changetype: modify add: orclindexedattribute orclindexedattribute: foo Type a command similar to the following at the system prompt: ldapmodify -D cn=orcladmin -q -h host -p port -f ldif_file_name You should not use this method to index an attribute for which data exists in the directory. To index such an attribute, use the Catalog Management tool, catalog. See Creating and Dropping Indexes from Existing Attributes by Using catalog on page 15-11. Dropping an Index from an Attribute by Using ldapmodify To drop an index from an attribute by using ldapmodify, specify delete in the LDIF file. For example: dn: cn=catalogs changetype: modify delete: orclindexedattribute orclindexedattribute: foo Indexing an Attribute for Which Data Exists by Using the Catalog Management Tool Use the Catalog Management tool to index an attribute for which data already exists and to drop an index from an attribute. See Creating and Dropping Indexes from Existing Attributes by Using catalog on page 15-11. Adding a New Attribute With Attribute Aliases by Using the Command Line You add, modify, or delete attribute aliases by creating an LDIF file, then using ldapmodify with the following syntax: ldapmodify -D cn=orcladmin -q -h host -p port -f ldif_file_name See Also: The ldapmodify command-line tool reference in Oracle Fusion Middleware Reference for Oracle Identity Management See Also: The catalog command-line tool reference in Oracle Fusion Middleware Reference for Oracle Identity Management Note: Unless you are absolutely sure that the indexes were not created by the base schema that was installed with Oracle Internet Directory, be careful not to use the catalog delete=T option to remove indexes from attributes. Removing indexes from base schema attributes can adversely impact the operation of Oracle Internet Directory. Note: DN is not an attribute. You cannot define dn in the schema. Therefore you cannot create an alias for dn.