Category:Active Directory
Last Updated:2011-08-03
 
When syncing AD to AD, there is a default mapping to sync the Manager attribute value:
Manager=#Manager#
Default functionality requires that in order for the 'Manager' attribute value to be set on a synced object, the Manager's source object must be part of the sync, and also sync over. By being included in the sync scope, the Manager's object DN is in the connections hash table, and the Sync phase is able to translate #Manager# for the destination object.
Occasionally, in certain circumstances, you may have a connection that does not include all source objects. So when creating some objects on the destination, the Manage attribute is not set because the sync can not translate #Manager#. In these cases, you may implement a DNHashGen connection solution. This solution uses a separate Join connection between the source and destination... it builds a DNHash.txt file containing DN information for the source and destination objects. This dnhash.txt file is utilized by your original sync connection to resolve #Manager# and assign 'Manager' on the synced destination objects.
Connection 1 : This is your new DNHashGen connection. This connection uses a special destination sync engine of DNHASHGen. This connection should select Source Object Types of Users/Contacts. This connection uses Source/Dest indexes (on the Destination tab) to perform a JOIN identifying matching member objects between the source and destination directories. Suggested indexes may be Mail/Mail, or some other set of unique index attributes. When the DNHashGen connection runs, the JOIN is performed, exporting a file, export.txt. This file contains a hash table identifying source/destination matches. (Your destination objects are not touched.)
Connection 2 : This is your standard connection. This connection may be configured as usual, with the addition of the export.txt file (renamed to dnhash.txt) to resolve #Manager#.
*To create Connection 1*
*To create Connection 2*
Sample Script:
shell "Connection1"
copy /y c:\UnitySync-v1.0\Connections\Connection1\export.txt c:\UnitySync-v1.0\\Connections\Connection2\dnhash.txt
shell "Connection2"