Oracle® Internet Directory Administrator's Guide 10g (9.0.4) Part Number B12118-01 |
|
Directory Schema Administration, 4 of 7
This section contains these topics:
See Also:
You need to understand attributes from a conceptual standpoint before attempting operations involving attributes.
In most cases, the attributes available in the base schema will suit the needs of your organization. However, if you decide to use an attribute not available in the base schema, you can add a new attribute or modify an existing one.
By default, attributes are multi-valued. You can specify an attribute as single-valued by using either Oracle Directory Manager or command-line tools.
See Also:
"Attributes" for a conceptual discussion of attributes |
The rules for adding attributes are:
The rules for modifying attributes are:
The rules for deleting attributes are:
If you delete an attribute that is referenced by any entry, that entry will no longer be available for directory operations.
See Also:
"Size of Attribute Values" for information about using syntax to specify the size of the attribute value |
This section tells you how to use Oracle Directory Manager to search for, view, add, modify, delete, and index attributes.
To view attributes by using Oracle Directory Manager:
"Viewing Attributes for a Specific Entry by Using Oracle Directory Manager" for instructions about how to view attributes for a specific entry
See Also:
To search for attributes by using Oracle Directory Manager:
orcl
, you would type those letters in the text box at the right end of the search criteria bar and create the phrase Name Begins With orcl
.
You can add a completely new attribute, or copy from an existing one.
Tip:
Because equality, syntax, and matching rules are numerous and complex, it may be simpler to copy these characteristics from a similar existing attribute. See "Creating a New Attribute from an Existing One by Using Oracle Directory Manager". |
To add a new attribute:
To use this attribute, remember to declare it to be part of the attribute set for an object class. You do this by selecting Schema Management in the navigator pane, then, in the right pane, selecting the Object Classes tab page. For further instructions, see "Guidelines for Modifying Object Classes".
Note:
To add an attribute by copying an existing attribute:
To use this attribute, remember to declare it to be part of the attribute set for an object class. You do this by selecting Schema Management in the navigator pane, then, in the right pane, selecting the Object Classes tab page. For further instructions, see "Guidelines for Modifying Object Classes".
Note:
To modify an attribute by using Oracle Directory Manager:
To delete an attribute:
Oracle Internet Directory uses indexes to make attributes available for searches. When Oracle Internet Directory is installed, certain attributes are already indexed. If you want to use additional attributes in search filters, you must index them.
Note: You can use Oracle Directory Manager to index an attribute only at the time when you create it. You cannot use Oracle Directory Manager to index an already existing attribute. To index an already existing attribute, use the Catalog Management tool as described in "Indexing an Attribute by Using Command-Line Tools". You can index only those attributes that have:
|
To view indexed attributes:
To add an index to an attribute:
To drop an index from an attribute:
This section discusses adding, modifying, and indexing attributes by using command-line tools.
To add a new attribute to the schema by using ldapmodify, type a command similar to the following at the system prompt:
ldapmodify -h host -p port -f ldif_file_name
The LDIF file contains data similar to this:
dn: cn=subschemasubentry 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 Manager or the ldapsearch command line tool.
See Also:
|
To delete an attribute by using ldapmodify, type a command similar to the following at the system prompt:
ldapmodify -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 Manager or the ldapsearch command line tool.
See Also:
|
Oracle Internet Directory uses indexes to make attributes available for searches. When Oracle Internet Directory is installed, the entry cn=catalogs
lists available attributes that can be used in a search.
If you want to use additional attributes in search filters, you must add them to the catalog entry. You can index only those attributes that have:
You can index a new attribute--that is, one for which no data exists in the directory--by using ldapmodify. You can index an attribute for which data already exists in the directory by using the Catalog Management tool. You can drop an index from an attribute by using ldapmodify, but Oracle Corporation recommends that you use the Catalog Management tool.
Once you have defined a new attribute in the schema, you can add it to the catalog entry by using ldapmodify.
To add an attribute for which no directory data exists by using ldapmodify, 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
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.
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
Use the Catalog Management tool to index an attribute for which data already exists and to drop an index from an attribute.
|
![]() Copyright © 1999, 2003 Oracle Corporation. All Rights Reserved. |
|