attr-name-map

The top-level (document) element for Schema Mapping policies. Schema Mapping policies are stored in the DirXML-XmlData attribute of a DirXML-Rule object that is pointed to by the DirXML-MappingRule attribute of a DirXML-Driver object.

Remarks

<attr-name-map> contains <attr-name> and <class-name> elements that specify a one-to-one mapping between class and attribute names in eDirectory and the application namespace. Schema Mapping policies are applied to map from the eDirectory namespace to the application namespace whenever XML is sent or returned from Identity Manager to the driver and before the Output transform is applied.

Schema Mapping policies are applied to map from the application namespace to the eDirectory namespace whenever XML is sent or returned from driver to Identity Manager after the Input Transform policy is applied.

Schema Mapping policies try to map the <class-name> and <attr-name> attributes of all elements in the document. The <class-name> to map an attribute name is found by looking the nearest ancestor element with a <class-name> attribute.

Example

<attr-name-map>        <!-- map eDirectory class User application class inetOrgPerson-->        <class-name>                <nds-name>User</nds-name>                <app-name>inetOrgPerson</app-name>        </class-name>        <!-- map NDS attribute Given Name to application attribute givenNamefor class User -->        <attr-name class-name="User">                <nds-name>Given Name</nds-name>                <app-name>givenName</app-name>        </attr-name>        <!-- map NDS attribute Surname to application attribute sn for allclasses -->        <!-- that don't have a class-specific mapping -->        <attr-name>                <nds-name>Surname</nds-name>                <app-name>sn</app-name>        </attr-name></attr-name-map>

Allowed Content

Element

Description

attr-name

Maps an attribute name.

class-name

Maps a class name.

Attributes

None

Content Rule

( attr-name | class-name ) *

Parent Elements

None