Previous Topic: How You Create a Direct and Reverse AssociationNext Topic: How to Create an Indirect Association


Direct and Reverse Association Example

This example shows you the procedure an administrator would follow to create a direct and reverse association between an account class, and a group class. In this example, the administrator defines an association that describes the relationship between the group class and the user account class.

This example assumes that the administrator has setup a JNDI data source, and created and mapped an account class named User account.

To create a direct and reverse association between an account class and a group class, define an association that describes the relationship between the group class and the user account class.

Follow these steps:

  1. In the mapping tree, click the Classes node.

    The Mapped Classes dialog appears.

  2. Click Add on the Mapped Classes dialog, and type a name and for your class, for example, Group of Names.

    Connector Xpress adds the new class to the mapping tree.

  3. In the mapping tree, click the Group of Names node.

    The Map Class dialog appears.

  4. In the Structural class list, select the native class that you want to map, for example, groupOfNames.
  5. In the Mapping tree, click the Attributes node.

    The Map Attributes dialog appears.

  6. Map the groups name and the group's member attribute to the provisioning attributes. For example, map the native attributes cn and member to the provisioning attributes objectname and member.
  7. Select the Multivalued check box for the member attribute.

    Selecting the check box specifies that the member attribute is multivalued and can hold multiple account names.

  8. Click the Associations node under the Group of Names node.

    The Class Associations dialog appears.

  9. In the Create direct association with list, select the User Account class.

    Connector Xpress adds a node named with User Account to the mapping tree.

  10. Click the with User Account node under the Associations node, under the Group of Names node.

    The Direct Association with User Account dialog appears.

    Note: Connector Xpress selects the group's naming attribute in the Group of Names By Attribute field as the attribute to map to by default.

  11. In the Group of Names Attribute, select member.

    Selecting the member attribute maps the groups member attribute to the account's naming attribute. That is, you have specified that the groups member attribute is populated by the accounts naming attribute, and defined the Group of names class as a group class.

  12. Select the Include a Reverse Association check box.

    The Reverse Association dialog appears.

  13. In the New Virtual Attribute field, type memberof.

    In this example, the native account class does not have a memberOf attribute, so create a virtual memberOf attribute and map it to the group's naming attribute.

    Note: Connector Xpress selects the group's naming attribute in the By Attribute field as the attribute to map to by default.

  14. Click Project, Save.

    Connector Xpress creates the direct and reverse associations between the account and group class you have mapped.

More Information:

How to Define Group Membership

Reverse Associations

How You Create a Direct and Reverse Association

How to Create an Indirect Association