Table Of Contents
Directory Manager
Editing Schema
Importing Schema
Directory Manager
Note
Directory Manager can be accessed only when operating in Internal Directory mode.
To access Directory management tasks, log into the system (see "Logging In" section on page 2-1). Then, from the Home page, click the Tools tab. The Tools page appears.
From the Tools page, click Directory Mgr.
With the directory manager you can:
•
Edit the schema
•
Import a schema from an XML file
Editing Schema
Step 1
From the Directory Manager page, click Edit Schema.
The schema editor appears (see Figure 10-1).
Figure 10-1 Schema Editor
Step 2
Enter the name of the new attribute.
Table 10-1 shows valid values for these fields.
Table 10-1 Valid Values for Schema Editor
Attribute
|
Description
|
Valid Values
|
Name of the attribute
|
Name of the attribute
|
a-z A-Z 0-9 -(hyphen) _ (under-score) . (period)
|
Unique ID for this attribute
|
Unique ID for this attribute
|
a-z A-Z 0-9 -(hyphen) _ (under-score) . (period)
|
Step 3
Accept or modify the Unique ID for this attribute.
Step 4
To clear your entries, click Reset.
Step 5
To add this attribute to the schema, click Add Entry.
Importing Schema
You can import a schema accessible from your computer. However, the file must be in XML format and conform to the definitions specified in the document type definition (DTD) file shown here:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Last updated: 2006-01-18 -->
<!ELEMENT attribute EMPTY>
<!ELEMENT attribute-type (name, object-identifier, syntax)>
single-value CDATA #REQUIRED
user-modification CDATA #REQUIRED
<!ELEMENT class (name, object-identifier, attribute)>
<!ELEMENT directory-schema (attribute-type, class)>
<!ELEMENT dsml (directory-schema)>
<!ELEMENT name (#PCDATA)>
<!ELEMENT object-identifier (#PCDATA)>
<!ELEMENT syntax (#PCDATA)>
Example
For example, a valid schema would look like:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE dsml SYSTEM "dsml.dtd">
<attribute-type id="IOSe1ipaddress" single-value="true" obsolete="false"
user-modification="true">
<name>IOSe1ipaddress</name>
<object-identifier>1.2.840.113548.3.1.2.20</object-identifier>
<syntax>1.3.6.1.4.1.1466.115.121.1.15</syntax>
<class id="IOSConfigClass" superior="top" type="structural" obsolete="false">
<name>IOSConfigClass</name>
<object-identifier>1.2.840.113548.3.2.2.1</object-identifier>
<attribute ref="1.2.840.113548.3.1.2.20" required="false"/>
Step 1
From the Directory Manager page, click Import Schema.
The import schema dialog box appears (see Figure 10-2).
Figure 10-2 Import Schema
Step 2
Enter the filename of the schema you want to import in the Schema Filename field.
Table 10-2 shows valid values for these fields.
Table 10-2 Valid Values for Import Schema
Attribute
|
Description
|
Valid Values
|
Schema Filename
|
Name of schema file to import.
|
a-z A-Z 0-9 -(hyphen) _ (under-score) . (period)
|
Use the browse function to locate the file, if needed.
Step 3
To clear your entries, click Reset.
Step 4
To import the file, click Import.