Step 9: Install the ECMA and Configure the FIM Synchronization Service
Creating and configuring the Extensible Connectivity 2.0 Management Agent test lab consists of the following:
Create the SQL_ECMA2
Configure the SQL_ECMA2 Run Profiles
Create the AD_ECMA2
Configure the AD_ECMA2 Run Profiles
Configure Attribute Precedence
Configure Object Deletion
Create the SQL_ECMA2
Now we will create the SQL_ECMA2 management agent in the synchronization service.
To create the SQL_ECMA2
Back in the Synchronization Service, click Management Agents and
In the Synchronization Service, at the top, select Management Agents and over on the right, under Actions, select Create. This will open a Create Management Agent wizard.
On the Create Management Agent screen, next to Management Agent for: select Extensible Connectivity 2
On the Create Management Agent screen, next to Name: enter SQL_ECMA2
Remove the check from Run this management agent in a separate process. This will allow for debugging should the need arise.
Click Next.
On the Select Extension DLL screen, click Browse and select SQL_ECMA2.dll. Click OK.
On the Select Extension DLL screen, click Refresh interfaces. This will populate the box below. It should support Import, Full Import, and Export operations.
Click Next.
On the Connectivity screen, next to Server enter: APP1.
On the Connectivity screen, next to Database enter: CONTOSO.
On the Connectivity screen, next to Table enter: HR.
Click Next.
On the Configure Partitions and Hierarchies screen, leave the defaults.
Click Next.
On the Select Object Types screen, select Person.
Click Next.
On the Select Attributes screen, select all six.
Click Next.
On the Configure Anchors screen, click Specify Anchor. This will open a Set Anchor dialog box.
On the Set Anchor dialog box, select EmployeeID and click Add>. Click OK.
Click Next.
On the Configure Connector Filter screen, click Next.
On the Configure Join and Projection Rules screen, click New Projection Rule. This will open a Projection dialog box.
On the Projection dialog box, verify Declared is selected.
On the Projection dialog box, verify Person is in the box next to Metaverse object type.
Click OK.
On the Configure Join and Projection Rules screen, click New Join Rule. This will open a Join Rule for Person dialog box.
Under Data source attribute select EmployeeID.
Under Metaverse attribute select employeeID.
Click OK. This will bring up a dialog box that states you are attempting to join a non-indexed metaverse attribute. Click OK. Click OK.
Click Next.
On the Configure Attribute Flow screen, from the drop-down list under Data source object type, select Person.
On the Configure Attribute Flow screen, from the drop-down list under Metaverse object type list, select person.
On the Configure Attribute Flow screen, for Mapping Type, select Direct.
On the Configure Attribute Flow screen, from the list below Data source attribute, select FirstName.
On the Configure Attribute Flow screen, from the list below Metaverse attribute, select givenName.
On the Configure Attribute Flow screen, for Flow Direction, select Import. Ensure that Allow Nulls is not selected. Click New.
Repeat the above steps for each of the attribute entries in the following table.
Important
Be sure to change the Flow Direction where applicable. Also ensure that Allow Nulls is not checked.
Table 1 – Attribute Flow
Data Source Attribute Flow Direction Metaverse attribute AccountName
Import
accountName
EMail
Import
mail
FirstName
Import
givenName
FullName
Import
displayName
EmployeeID
Import
employeeID
LastName
Import
sn
AccountName
Export
accountName
EMail
Export
mail
FirstName
Export
givenName
FullName
Export
displayName
LastName
Export
sn
Click Next.
On the Configure Deprovisioning screen, select Stage a delete on the object for the next export run and click Next.
On the Configure Extensions screen click Finish.
Configure the SQL_ECMA2 Run Profiles
Now that the SQL_ECMA2 has been created, you will need to create run profiles for the management agent.
To configure the SQL_ECMA2 Run Profiles
In the Synchronization Service, on the right, under Actions menu, click Configure Run Profiles. This opens the Configure run Profiles window.
Click New Profile. This will begin the Configure Run Profile wizard.
On the Profile Name page, in the text box under Name, type the following, and then click Next:
Full ImportOn the Configure Step page, from the drop-down list under Type, select Full Import (Stage Only), and then click Next.
On the Management Agent Configuration. Click Finish.
Click New Profile.
On the Profile Name page, in the text box under Name, type the following, and then click Next:
Full SynchronizationOn the Configure Step page, from the drop-down list under Type, select Full Synchronization, and then click Next.
On the Management Agent Configuration page click Finish.
Click Finish.
Click New Profile.
On the Profile Name page, in the text box under Name, type the following, and then click Next:
Delta SynchronizationOn the Configure Step page, from the drop-down list under Type, select Delta Synchronization, and then click Next.
On the Management Agent Configuration page click Finish.
Click Finish.
Click New Profile.
On the Profile Name page, in the text box under Name, type the following, and then click Next:
ExportOn the Configure Step page, from the drop-down list under Type, select Export, and then click Next.
On the Management Agent Configuration page click Finish.
Click Finish.
Create the AD_ECMA2
Now we will create the AD_ECMA2 management agent in the synchronization service.
To create the AD_ECMA2
Back in the Synchronization Service, click Management Agents and
In the Synchronization Service, at the top, select Management Agents and over on the right, under Actions, select Create. This will open a Create Management Agent wizard.
On the Create Management Agent screen, next to Management Agent for: select Extensible Connectivity 2
On the Create Management Agent screen, next to Name: enter AD_ECMA2
Remove the check from Run this management agent in a separate process. This will allow for debugging should the need arise.
Click Next.
On the Select Extension DLL screen, click Browse and select AD_ECMA2.dll. Click OK.
On the Select Extension DLL screen, click Refresh interfaces. This will populate the box below. It should support Import, Full Import, and Export operations.
Click Next.
On the Connectivity screen, next to User Name enter: Administrator.
On the Connectivity screen, next to Password enter the Administrators password.
On the Connectivity screen, next to Domain enter: CORP.
On the Connectivity screen, next to Domain FQDN enter: corp.contoso.com.
Click Next.
On the Configure Provisioning Hierarchy screen, leave the defaults.
Click Next.
On the Configure Partitions and Hierarchies screen, select DC=corp,DC=contoso,DC=com.
Click the Containers button. Ensure that ECMA2 is selected. Click OK.
Click Next.
On the Select Object Types screen, select user.
Click Next.
On the Select Attributes screen, select the following:
displayName
employeeID
givenName
mail
sAMAccountName
sn
Click Next.
On the Configure Anchors screen, click Specify Anchor. This will open a Set Anchor dialog box.
On the Set Anchor dialog box, select EmployeeID and click Add>. Click OK.
Click Next.
On the Configure Connector Filter screen, click Next.
On the Configure Join and Projection Rules screen, click New Projection Rule. This will open a Projection dialog box.
On the Projection dialog box, verify Declared is selected.
On the Projection dialog box, verify Person is in the box next to Metaverse object type.
Click OK.
On the Configure Join and Projection Rules screen, click New Join Rule. This will open a Join Rule for Person dialog box.
Under Data source attribute select employeeID.
Under Metaverse attribute select employeeID.
Click OK. This will bring up a dialog box that states you are attempting to join a non-indexed metaverse attribute. Click OK. Click OK.
Click Next.
On the Configure Attribute Flow screen, from the drop-down list under Data source object type, select Person.
On the Configure Attribute Flow screen, from the drop-down list under Metaverse object type list, select person.
On the Configure Attribute Flow screen, for Mapping Type, select Direct.
On the Configure Attribute Flow screen, from the list below Data source attribute, select display Name.
On the Configure Attribute Flow screen, from the list below Metaverse attribute, select displayName.
On the Configure Attribute Flow screen, for Flow Direction, select Import. Ensure that Allow Nulls is not selected. Click New.
Repeat the above steps for each of the attribute entries in the following table.
Important
Be sure to change the Flow Direction where applicable. Also ensure that Allow Nulls is not checked.
Table 1 – Attribute Flow
Data Source Attribute Flow Direction Metaverse attribute displayName
Import
displayName
employeeID
Import
employeeID
givenName
Import
givenName
mail
Import
mail
sAMAccountName
Import
accountName
sn
Import
sn
displayName
Export
displayName
givenName
Export
givenName
mail
Export
mail
sAMAccountName
Export
sAMAccountName
sn
Export
sn
Click Next.
On the Configure Deprovisioning screen, select Stage a delete on the object for the next export run and click Next.
On the Configure Extensions screen click Finish.
Configure the AD_ECMA2 Run Profiles
Now that the AD_ECMA2 has been created, you will need to create run profiles for the management agent.
To configure the AD_ECMA2 Run Profiles
In the Synchronization Service, on the right, under Actions menu, click Configure Run Profiles. This opens the Configure run Profiles window.
Click New Profile. This will begin the Configure Run Profile wizard.
On the Profile Name page, in the text box under Name, type the following, and then click Next:
Full ImportOn the Configure Step page, from the drop-down list under Type, select Full Import (Stage Only), and then click Next.
On the Management Agent Configuration. Click Finish.
Click New Profile.
On the Profile Name page, in the text box under Name, type the following, and then click Next:
Full SynchronizationOn the Configure Step page, from the drop-down list under Type, select Full Synchronization, and then click Next.
On the Management Agent Configuration page click Finish.
Click Finish.
Click New Profile.
On the Profile Name page, in the text box under Name, type the following, and then click Next:
Delta SynchronizationOn the Configure Step page, from the drop-down list under Type, select Delta Synchronization, and then click Next.
On the Management Agent Configuration page click Finish.
Click Finish.
Click New Profile.
On the Profile Name page, in the text box under Name, type the following, and then click Next:
ExportOn the Configure Step page, from the drop-down list under Type, select Export, and then click Next.
On the Management Agent Configuration page click Finish.
Click Finish.
Configure Attribute Precedence
For this example, we are going to assume that the SQL HR database is authoritative for our organization. Because of this, we will set our attribute precedence to ensure that the SQL_ECMA2 has precedence over AD_ECMA2.
To configure Attribute Precedence
In the Synchronization Service, at the top, click Metaverse Designer.
Under the Object types, click person.
Down under attributes, click the Import Flow bar twice. This will sort the attributes so that the ones that have 2 sources will be at the top.
Highlight accountName, and on the right click Configure Attribute Flow Precedence. This will bring up the Configure Attribute Flow Precedence dialog box.
On the right, use the arrow and move SQL_ECMA2 to the top position. Click OK.
Repeat this for each of the attributes listed below.
displayName
employeeID
givenName
mail
sAMAccountName
sn
Configure Object Deletion
Now we will configure the object deletion rule. For purposes of this guide we will assume that SQL HR is authoritative for all objects. Because of this we will trigger a deletion of the user account in Active Directory if the user is removed from the SQL HR database.
To Configure Object Deletion
On the same screen, the Metaverse Designer, at the top, click Configure Object Deletion Rule.
Select Delete metaverse object when connector from any of the following management agents is disconnected. Place a check in the box next to SQL_ECMA2.
Click OK.