Classic Metadirectory Walkthrough: Administering MIIS 2003 Infrastructure

Applies To: Windows Server 2003 with SP1

Previous Steps in This Walkthrough

  1. Classic Metadirectory Overview

  2. Scenario Design

  3. Lab Setup

  4. Implementation Steps

Administering the MIIS 2003 Infrastructure

After you create the Microsoft Identity Integration Server 2003 infrastructure for Fabrikam, use the Identity Manager to refine the infrastructure and make it easier for other Microsoft Identity Integration Server 2003 administrators to manage.

To administer the Microsoft Identity Integration Server 2003 infrastructure, perform the following administration tasks:

  • Connect connector space objects to the metaverse, which includes:

    • Attribute indexing

    • Connecting disconnector objects

    • Disconnecting connector objects

    • Previewing action on disconnector objects

  • Manage management agents

  • Create command scripts for management agents

  • Use administrative roles

The administration tasks in this section use the Fabrikam Telephone MA, but you can also use other MAs to perform these tasks. .

Connecting Connector Space Objects to the Metaverse

When the Fabrikam Telephone MA was run, Microsoft Identity Integration Server 2003 imported three objects to the connector space that it could not join to any objects in the metaverse. These three objects were created from the three objects for Smith in the Telephone system data source. When the Telephone MA was run, Microsoft Identity Integration Server 2003 could not resolve which of the employees with the last name of Smith should be joined to the metaverse because the phone system has no givenName or other attribute to use in the join rule.

When you run a management agent, you can specify that a join rule be applied to each object in the connector space. By specifying a join rule, Microsoft Identity Integration Server 2003 searches the metaverse and attempts to find a corresponding object to which the connector space object can be joined. When a search returns any results, the resolution rules determine whether:

  • None of the objects satisfies the join criteria, in which case the next search criteria are evaluated.

  • Exactly one of the objects satisfies the join criteria, in which case it is joined with the connector object.

  • More than one of the objects satisfies the join criteria, in which case the join operation fails.

In the case of the three objects in the Fabrikam Telephone MA, more than one of the objects satisfies the join criteria, and so the join failed.

To refine the Microsoft Identity Integration Server 2003 configuration and resolve this join failure, you will search the metaverse for candidates and then connect the objects in the connector space to the appropriate objects in the metaverse.

Resolving the join failure involves the following steps:

  1. Diagnosing Disconnector objects

  2. Attribute Indexing

  3. Connecting Disconnector objects

  4. Disconnecting Connector objects

Diagnosing Disconnector Objects

The disconnector objects are the result of join rules that were not met when the import operation performed by the Fabrikam Telephone MA occurred. You will view the disconnector object in order to diagnose the cause of the failed join operation.

To diagnose a failed join operation

  1. In Identity Manager, in the Tools menu, click Management Agents.

  2. Click Fabrikam Telephone MA.

  3. On the Actions menu, select Search Connector Space.

  4. In Scope, select Pending Import.

  5. To select the kind of pending import you wish to find in the Fabrikam Telephone MA connector space, click Add.

  6. Click Search.

  7. In DN, select 000042391, and then click Preview.

  8. Click Full Synchronization, and then click Generate Preview.

  9. Click Join and Projection, as shown in the figure below.

    cdd0f82b-5c8f-4535-a933-a71780cb5098

    Figure 1.17: Join and Projection

    The Resolution for the evaluation of the join rules is Multiple Matches. This resolution means that when the synchronization cycle runs again, the connector space object will remain a disconnector object because of the multiple metaverse objects with an sn attribute that matches the name attribute in the Telephone system (Smith). If you click the ellipsis in the Matches column, Microsoft Identity Integration Server 2003 displays the metaverse objects for which this connector space object satisfied the displayed join condition.

  10. 10.Click Close, and then click Close again.

Attribute Indexing

To locate the metaverse objects that are appropriate for connecting the three disconnector objects, you will search the metaverse for join candidates. Before searching the metaverse, you can index the metaverse object attributes used for join searches to increase the speed of the search.

The metaverse object attribute used for join searches is indexed because the SQL database used by Microsoft Identity Integration Server 2003 uses indices to identify a unique record and thereby make it faster and to find and sort records.

To index a metaverse object attribute

  1. On the Tools menu, click Metaverse Designer.

  2. In Object types, click person.

  3. In Attributes, click sn.

  4. On the Actions menu, click Edit Attribute.

  5. In the Edit Attribute dialog box, select Indexed to index the attribute in the Microsoft Identity Integration Server 2003 SQL database.

  6. Click OK.

  7. In Metaverse Designer, verify that there is a value of Yes in the Indexed column for the attribute sn.

Connecting Disconnector Objects

The three Telephone data source connector space objects that are not joined to metaverse objects are disconnector objects that you will join to metaverse objects. To join the three disconnector objects, you will use the Smith connector space objects imported to the connector space by the Fabrikam Telephone MA.

The process of joining the three disconnector objects involves the following steps:

To Join Connector Space Objects to Metaverse Objects

  1. Configure column headings in both the connector space and the metaverse displays to provide information relevant to the process of joining the connector space and metaverse objects.

  2. Search for Disconnector objects. Disconnector objects are the connector space objects that are not linked to metaverse objects.

  3. Create a metaverse filter in order to identify potential objects in the metaverse to join to the connector space objects.

  4. Join the connector space objects to the appropriate metaverse objects.

To Configure the Column Headings

  1. Select the Fabrikam Telephone MA.

  2. On the Tools menu, click Joiner.

  3. From Management Agent, click the Fabrikam Telephone MA.

  4. On the Actions menu, click Disconnector Column Settings.

Note

Column settings are configured separately for each management agent in the Joiner.

  1. Verify that NAME, RECID, and TELEPHONE appear under Selected Columns section. If these attribute names do not appear under Selected Columns, select them under Available Columns and click Add.

  2. Under Available Columns, select PAGER, and then click Add so that the attribute name appears under Selected Columns, as shown in the figure below.

    8ce9a71d-1a3d-4806-9718-34251b2f3ce8Figure 1.18: Connector Space Columns Settings

  3. Next, configure the metaverse column settings. On the Actions menu, click Metaverse Column Settings.

  4. Add the following attributes from Available Columns to the Selected Columns: sn, givenName, and employeeID, as shown in the figure below.

    3066fde0-9388-414f-a01a-4d5d0a4269a5Figure 1.19: Metaverse Search Results Column Settings

  5. Click OK.

To Search for Disconnector Objects

  1. In Disconnector Type, select All Disconnector Types.

  2. On the Actions menu, click Search Disconnectors.

    The Connector Space list box displays the three connector space objects that are not joined to the metaverse.

To Create a Metaverse Filter

  1. Click Configure Search Filters.

  2. In the Configure Search Filters dialog box, click Add.

  3. In Add Search Filter, in Name, type mv.sn = cd.name.

  4. For Metaverse Object Type, click person.

  5. For Metaverse Attribute, click sn.

  6. For Operator, click Equals.

  7. For Value, click Datasource Attribute.

  8. From the Datasource Attribute drop-down list, click NAME, as shown in the figure below.

    f46836f0-04df-4cce-a51e-946ac6a813e1

    Figure 1.20: Add Search Filter

  9. Click Add.

  10. Click OK, and then click OK again.

  11. In Metaverse Search Filter, click mv.sn = cd.name.

  12. In Disconnectors, click a disconnector object.

  13. On the Actions menu, click Apply Filter.

To Join Connector Space Objects to Metaverse Objects

  1. In Disconnectors, select the object with the RECID 000051371.

  2. The filter you configured is processed for each disconnector object as they are selected. This processing generates the potential matches in the metaverse for the selected connector space object.

  3. In the Metaverse Search Results, click the object with the name Elsbeth Smith.

  4. Click Join, and then click Yes.

  5. You have now joined one of the connector space objects to a metaverse object. The icon next to the connector space object with RECID 000051371 now indicates that a join has occurred. Elsbeth was connected to an object with a different Employee ID than RECID on purpose. Later in this scenario, the objects will be disconnected.

  6. On the Actions menu, click Search Disconnectors.

    Now there are only two disconnector connector space objects. RECID 000051371 is now joined to a metaverse object and it no longer qualifies as a disconnector object.

Disconnecting Connector Objects

In situations such as employee retirement or resource reallocation, you will need to disconnect a connector space object from the metaverse. To reconnect the connector space object to the metaverse after a connector space object is disconnected, you can use Joiner in the Identity Manager to join the object. (Typically, you would configure management agent rules to discover these changes during synchronization and perform the disconnection or connection.) The management agent must be run to affect changes.

Note

When disconnecting a reference object, such as distinguished name, you must run the associated management agent for both import and export to affect the change. At minimum, the import run must be in Delta Synchronizationmode. Export runs are always delta mode.

To disconnect a connector space object from the metaverse

  1. In Identity Manager, from the Tools menu, click Metaverse Search.

  2. Select any of the search clauses, and then click Delete Clause.

  3. On the Actions menu, click Add Clause.

  4. For Attribute, click sn.

  5. For Operator, click Equals.

  6. Type Smith as the value, and then press ENTER.

  7. On the Actions menu, click Search. The Search results list box will have three objects with the sn Smith listed.

  8. Select the object with the displayName Elsbeth Smith.

  9. On the Actions menu, select Properties to display the Metaverse Object Properties dialog box.

  10. Select the Connectors tab.

  11. Select the object with the MA name of Fabrikam Telephone MA and connector Distinguished Name of 000051371. The Join Method column indicates that the connector for the Fabrikam Telephone MA was created by an account-joiner-rule.

  12. Click Disconnect.

    A dialog box asks if you want to create an Explicit Disconnector or Disconnector. If you choose Disconnector, then the next time rules are run, the disconnector is a candidate for join rules and could potentially join with a metaverse entry. If you choose Explicit Disconnector, the entry will not be a candidate for join or projection even if you create new join rules or add a projection rule for this management agent.

    In this scenario, choose Disconnector to change the join rules so that the entry is joined to the correct metaverse entry the next time the rules are run, as shown in the figure below.

    ba85a8c0-317f-444c-bf4d-44cbcaf0b7bc

    Figure 1.21: Disconnect Object Dialog Box

  13. Click Disconnector.

  14. Click OK, and then click the OK again.

  15. Click Close.

  16. On the Tools menu, click Joiner.

  17. In Management Agent, verify that the Fabrikam Telephone MA is selected.

  18. On the Actions menu, click Search Disconnectors.

    You will see that all three Smith connector space objects are listed in the connector space. The disconnection was successful.

Administering Management Agents

The greater part of the tasks required to maintain the Microsoft Identity Integration Server 2003 infrastructure involve administering management agents (MAs). It is important that administrators practice the more common Microsoft Identity Integration Server 2003 tasks in order to quickly support changes in the Microsoft Identity Integration Server 2003 infrastructure.

To learn how to quickly support your Microsoft Identity Integration Server 2003 infrastructure, you will perform the following tasks:

  • Export a management agent

  • Delete a management agent

  • Import a management agent from a file

  • Create command scripts for management agents

  • Use Microsoft Identity Integration Server 2003 administrative roles

Exporting a Management Agent

Management agents are typically exported for the following practices:

  • To be imported into another Microsoft Identity Integration Server 2003 system.

  • To create a similar management agent by first exporting an existing management agent, and then importing it and editing its configuration.

  • For version control on management agents in order to obtain a management agent in a known state.

To export a management agent, save the configuration information of an MA to a file.

To export a management agent

  1. In Identity Manager, in the Tools menu, click Management Agents.

  2. Click the Fabrikam Telephone MA.

  3. On the Actions menu, select Export Management Agent.

  4. Navigate to the folder where you want to save the file.

Important

You will be deleting the Fabrikam Telephone MA later in the scenario. Do not select the management agent working folder in this step.

  1. In File name, type Fabrikam-Telephone-Ma.xml.

  2. In Save as type, select Management Agent Configuration File (*.xml).

  3. Click Save.

This procedure exports your management agent to an XML file. You can view this file with your preferred XML viewer, such as Microsoft® Internet Explorer. Internet Explorer 6.0 and later versions allows you to expand and collapse the XML data structure that you are viewing. Collapsing the sections of the XML file displays a high-level overview of the structure of the XML file, as shown in the figure below.

09c9e1fc-be3d-4595-ae7d-fb115387bbd9

Figure 1.22: Management Agent Viewed as an XML File

Deleting a Management Agent

Before deleting a management agent, ensure that you have exported it to a file, as described in the previous section. After you have deleted the management agent, you will import the Fabrikam Telephone MA from the export file.

To delete a Management Agent

  1. On the Tools menu, select Management Agents.

  2. Select the Fabrikam Telephone MA.

  3. On the Actions menu, select Delete.

  4. Click Delete management agent and connector space.

  5. Click OK, and then click Yes.

    Both the management agent and the connector space used by that management agent are deleted.

  6. Click OK.

Checking Results of the Management Agent Deletion

After a management agent is deleted, confirm the results of the deletion on the metaverse by searching the metaverse and by examining the local file directory where management agent files are stored.

Important

It is important that the ramifications of deleting any management agent be examined prior to performing the deletion. Deleting a management agent is not reversible.

  1. On the Tools menu, select Metaverse Search.

  2. Select any existing clauses and, on the Actions menu, click Delete Clause.

  3. On the Actions menu, click Add Clause.

  4. In the Attribute column, select employeeStatus.

  5. In the Operator column, select Equals.

  6. In the Value column, type active.

  7. On the Actions menu, click Search.

  8. From the search results, double-click Amity Harty.

Any attributes that the Fabrikam Telephone MA contributed to a metaverse object are removed from the metaverse object. In addition, the Telephone MA had reset the area code in the telephoneNumber attribute to 22, but it has reverted to 20, the value imported from the HR system originally.

Attributes contributed to a metaverse object from a connector space object are recalled from the metaverse object when the connector space object is disconnected. If attribute precedence exists for a recalled attribute, the next value in the ranking is promoted to the metaverse; in this case, the value provided by the HR system MA is promoted.

To confirm MA deletion by using Windows Explorer

  1. Open Windows Explorer.

  2. Browse to the following folder:

    C:\Program Files\Microsoft Identity Integration Server\MaData

    The working folder for the Fabrikam Telephone MA is renamed as deleted and the time and date of this operation is appended to the folder name. If a data file exists in the folder, the folder will be renamed to preserve data; otherwise, the folder will be deleted when the management agent is deleted.

Importing a Management Agent From a File

Management agents are exported as files by using the Extensible Markup Language (XML) format that uses the .xml file name extension. The process of importing a management agent uses the same XML formatted files. Typically, you import a management agent by using an XML file that is the result of an exported management agent; but you can also import a management agent by using a file that was simply written, or scripted, in the XML format by a Microsoft Identity Integration Server 2003 administrator.

When you import a management agent by using this method, you actually create a new management agent. The management agent cannot already exist (except as an exported .xml file) on the server. The new management agent is created with all of the settings and properties that were configured in the exported management agent. A new connector space will be created for the new management agent upon the first run. The new management agent has a new globally unique identifier (GUID), and the exported management agent remains intact. As a result, you can use the exported management agent as a template for creating additional management agents.

When you import a management agent from a file, you need to complete each step of the Management Agent Designer, even though all of the settings that existed in the management agent when it was exported to a file are retained. All run profiles associated with a management agent are also imported with no additional configuration necessary.

Note

To import a management agent from an XML file without creating a new GUID, and without retaining the saved file as a template, you can update a management agent. For more information about updating a management agent, see Microsoft Identity Integration Server 2003 Help.

The following rules apply to the process of creating a management agent by importing it from a file:

  • Although all of the settings for the management agent that was exported to an XML file are retained in that XML file, it is necessary to completely design the new management agent when importing it from the file.

  • All run profiles associated with a management agent are imported without additional configuration.

  • For Active Directory management agents, if Active Directory forest configuration settings are changed, run profile settings are not retained.

To import a management agent from a file

  1. On the Tools menu, click Management Agents.

  2. On the Actions menu, click Import Management Agent.

  3. Browse to the file folder containing the Fabrikam Telephone MA XML export file and select Fabrikam-Telephone-MA.xml.

  4. Click Open.

  5. For each of the pages, click Next to move through the management agent creation process. Do not change the settings.

    All of the settings from the original Fabrikam Telephone MA are already set in the property pages.

  6. Click Finish.

  7. On the Actions menu, click Run.

  8. The Fabrikam Telephone MA run profiles were saved and imported during this process. Do not run the run profiles at this time.

  9. Click Cancel.

Note

In order to completely restore the Microsoft Identity Integration Server 2003 environment to a point prior to deleting the Fabrikam Telephone MA, you must reset the attribute precedence flow as it was set before the MA was deleted. You must restore the Microsoft Identity Integration Server 2003 environment in order to see the -value for the telephoneNumber attribute provided by the Fabrikam Telephone MA instead of the value provided by the Fabrikam HR MA. In addition, you must ensure that the import file that is used in the Full Import – Stage to CS run profile for the Telephone MA is in the MaData folder, or the MA will not be able to find the telephone system data.

Creating Command Scripts for Management Agents

Most Microsoft Identity Integration Server 2003 administration can be performed by using the Identity Manager user interface, but you can also administer Microsoft Identity Integration Server 2003 by using Windows Management Interface (WMI) command scripts. These scripts allow you to improve Microsoft Identity Integration Server 2003 administration by providing all administrators in an enterprise with common run profiles at the command line, rather than relying on each administrator to perform tasks by using Identity Manager.

Note

The Scheduled Tasks in Control Panel, or the Schtasks command-line tool, can also be used to schedule management agent runs.

The scripts that you create will be used to run a management agent by using a specified run profile. Scripts are programmed by using the Microsoft Visual Basic Scripting Edition (VBScript). Scripts can also be created by using C#. In the following example, you will work in both the Identity Manager and at the command line while creating the management agent.

Remember that the Fabrikam Telephone MA was created in a two step process: first the data source objects were added to the connector space, and then the Synchronization Only run profile was used to join connector space objects to the metaverse. You will create a VBScript file (.vbs) for each of these processes.

To create and run a management agent script

  1. Stage to the connector space. On the Tools menu, click Management Agents.

  2. Click Fabrikam Telephone MA.

  3. On the Actions menu, click Configure Run Profiles.

  4. Select the Full Import - Stage to CS profile.

  5. Click Script.

  6. Browse to the c:\ directory on the server running Microsoft Identity Integration Server 2003, and then name the file stage.vbs.

  7. In Save as, click VB Script Files (*.vbs).

    There is an option to create a C# file. That method is not covered in this scenario.

  8. Click Save.

  9. Apply join rules. Click Fabrikam Telephone MA.

  10. On the Actions menu, click Configure Run Profiles.

  11. Select the Full Import - Delta Synchronization profile.

  12. Click Script.

  13. Browse to the c:\ directory on the server running Microsoft Identity Integration Server 2003, and then name the file apply.vbs.

  14. In Save as, click VB Script Files (*.vbs).

  15. Click Save.

  16. Run the management agent at the command line.

    Before you can run the Fabrikam Telephone MA, you will need to copy the telephone system data file back into the working folder for the MA. When you deleted the MA, the folder was renamed in order to save your data. When you imported the Fabrikam Telephone MA from the XML file, the working folder was re-created. You will need the data file in the new working folder.

  17. Copy the fabrikam-telinfo-fw.txt from the following directory:

    C:\Scenarios\ClassicMetadirectory

  18. Paste the file fabrikam-telinfo-fw.txt to the following directory:

    C:\Program Files\Microsoft Identity Integration Server\MaData\Fabrikam Telephone MA

    Now that the VBScript files are created, you will run them to control the management agent through WMI.

  19. At the command line, change to the c:\ drive and root directory, and then type cscript stage.vbs.

  20. In Identity Manager, in the Tools menu, click Operations.

    If the data takes longer than a few seconds to process, you should see the status change from in-progress to success. If the status indicated in-progress, wait until it changes to success so you can view the statistics.

  21. Verify that the Staging statistics show 100 Adds to the connector space.

  22. At the command line, type cscript apply.vbs.

  23. In Identity Manager, in Operations, wait for the status indicator to switch to success.

  24. Verify that the Inbound Synchronization statistics show 97 Joins, representing those objects that have joined to metaverse objects, and 3 Disconnectors, representing the three ‘Smith’ objects that failed to join.

Using MIIS 2003 Administrative Roles

Microsoft Identity Integration Server 2003 creates three groups during installation that control which tasks users can perform in the Identity Manager. The following groups are created by Microsoft Identity Integration Server 2003:

  • MIISAdmins — Members of this group have full access to everything in the Identity Manager.

  • MIISOperators — Members of this group have access to Operations in the Identity Manager only. Members of MIISOperators can run management agents, view synchronization statistics for each run, and save the run histories to a file.

  • MIISJoiners — Members of this group have access to Joiner and Metaverse Search in the Identity Manager. Members of MIISJoiners can join or project disconnector objects by using Joiner, and use Metaverse Search to view object properties and disconnect objects from the metaverse.

Microsoft Identity Integration Server 2003 also creates two security groups during installation that do not have access to the Identity Manager, but are used for authentication during password management operations:

  • MIISBrowse — Members of this group have permission to gather information about a user's lineage when resetting passwords by using Windows Management Interface (WMI) queries.

  • MIISPasswordSet — Members of this group have permission to perform all operations by using the password management interfaces with WMI.

For the Fabrikam scenario, the current Microsoft Identity Integration Server 2003 user will be moved to the various security groups. To complete this process, you will perform the following actions:

  • Move the user from MIISAdmins to MIISOperators

  • Add the user to MIISJoiners

  • Return the user to MIISAdmins again

To move a user from MIISAdmins to MIISOperators

  1. Close Identity Manager.

  2. Click Start, click Control Panel, double-click Administrative Tools, and then double-click Active Directory Users and Computers.

  3. Click the domain node (domain controller) and then click Users.

  4. Double-click the MIISAdmins group.

  5. Remove the currently logged on user from that group.

  6. Click OK.

  7. Double-click the MIISOperators group.

  8. Click Add, and then add the current user into the MIISOperators group.

  9. Click OK.

  10. Log off and then log on to Windows Server 2003 again.

    This will reset the Windows access token.

  11. To view the available functionality for the user, open Identity Manager.

    Only Operations is available.

  12. Close Identity Manager.

To add a user to the MIISJoiners group

  1. Click Start, click Control Panel, double-click Administrative Tools, and then double-click Active Directory Users and Computers.

  2. Click the domain node (domain controller) and then click Users.

  3. Click the MIISJoiners group.

  4. Click Add, and then add the current user into the MIISJoiners group.

  5. Click OK.

  6. Double-click the MIISOperators group and remove the current user from the MIISOperators group.

  7. Click OK.

  8. Log off and then log on to Windows Server 2003 again.

    This will reset the Windows access token.

  9. To view the available functionality for the user, open Identity Manager.

    Only the Metaverse Search and Joiner views are available.

  10. Close Identity Manager.

To return the user to the MIISAdmins group

  1. Click Start, click Control Panel, double-click Administrative Tools, and then double-click Active Directory Users and Computers.

  2. Click the domain node (domain controller) and then click Users.

  3. Click the MIISAdmins group.

  4. Click Add, and then return the currently logged on user into the MIISAdmins group.

  5. Click OK.

  6. Close Active Directory Users and Computers.

  7. Log off and then log on to Windows Server 2003 again.

    This will reset the Windows access token.

  8. To view the available functionality for the user, open Identity Manager.

    All metadirectory views are available.