Tivoli Directory Integrator, Version 7.1.1

Attribute Mapping and Schema

Attribute mapping is done using either the attribute map panel in the AssemblyLine or in the component editor.

In the AssemblyLine editor you can add attributes either by right clicking in the attribute maps section and choosing add attribute, or use the Add button in the toolbar as shown below.

Figure 1. Attribute Mapping
Attribute Mapping window

In this window you don't see the schema for the components in the AssemblyLine. To work with the schema you open the editor for the component by selecting it in the left tree.

The typical scenario for attribute mapping is to first discover the schema for the component. When you do a discover schema, the CE will run a background job that executes the query schema method of the component. If no schema is returned the CE will ask if you would like to read an entry to attempt to derive the schema from that. The result is then populated back into the schema for the component you are editing.

The picture below shows the contents of the input schema for a component after discovering attributes. If a component for some reason doesn't provide you with a schema you can add schema items manually using the Add… button on the toolbar or reuse a schema from another component configuration with the Change Inheritance option.

Figure 2. Attribute Mapping, with discovered Attributes
Attribute Mapping window, with discovered Attributes

You can also use the drop down menu on the title bar to change the inheritance for the schema configuration.

Having a schema, you can drag and drop individual items into to the attribute map or use the Map Attribute function from the context menu and modify the mapping if necessary.
Figure 3. Changing Attribute Map inheritanceChanging Attribute Map inheritance
Note: Drag and drop functionality depends to a certain extent on your windowing environment. In particular, on UNIX systems, the Common Desktop Environment (CDE) does not provide this, so in order to set up mapping you will need to use the Map Attribute function from the context menu.
Figure 4. Attribute Mapping, with JavaScript editing window for individual Attribute
Attribute Mapping window, with JavaScript editing window for individual Attribute

If you have no schema or want to add attributes independent of the schema you can of course do so. Use the Add button to add a new attribute to the map. You name the attribute, and an expression of either "conn.attribute-name" or "work.attribute-name" is assigned to the new attribute. This can be done in both the AssemblyLine editor and in the Connector editor windows.

Figure 5. Add Attribute dialog
Add Attribute dialog

A dialog appears with an editable text field where you can type the name of the new attribute. The list above contains all known attribute names from the schema; you can select those you want added to the attribute map.

As you add more components to the AssemblyLine you can drag attributes between them where it makes sense. Dragging a component onto another component will map all mapped attributes to the target component. You can also drag attributes from the attribute map onto components in the left panel showing all components in the AssemblyLine. This will perform a simple map of all those items you drag over. This is similar to dropping them onto the component in the attribute map panel.

The concept of Attribute Mapping is treated fairly extensively, replete with examples, in IBM® Tivoli® Directory Integrator V7.1.1 Getting Started.

Depending on the Connector, and the mode it is configured in, there will be different tabs in the Connector configuration window.

External attribute maps

Attribute maps can inherit from external attribute map files. An external attribute map file is a text file that contains attribute map items just like you have it in the actual mapping screen. The difference is that the external file uses a different format than the internal XML structure. This makes it easier for you to configure the attribute map for any connector without even going into the CE. The CE provides this option in the inheritance dialog for attribute maps:
Figure 6. Attribute map: inheritance dialog
Attribute map: inheritance dialog
Click the External attribute map... button to choose an existing file, or type "file:" followed by the full path to the attribute map file. If you want to use relative path names, prefix the filename with a dot+slash (./).

[ Terms of use | Feedback ]
(C) Copyright IBM Corporation, 2003, 2012. All Rights Reserved.
IBM Tivoli Directory Integrator 7.1.1