So now that our ADAM schema is ready, we can go ahead and start configuring ADAMSync.We need to do three things to get ADAMSync running at this point:1) Modify the XML file. The XML file is used as the configuration point for ADAMSync, so we’ll tweak this file to have the settings we desire.2) Install the XML file in to ADAM.3) Run ADAMSync to perform the synchronization itself.Step 1: Modifying the XML fileLet’s try and keep it simple to start. The easiest way to get off of the ground is just to pick the proper target, do the fewest modifications required and then run with it.ADAMSync ships with a sample XML file which has many of the commonly used tags. I typically work from this as my starting point.I started off by making a quick copy of the default ADAMSync config to use.
C:\WINDOWS\ADAM>copy MS-AdamSyncConf.XML ADAMSyncDemo.XML 1 file(s) copied.
<?xml version="1.0"?><doc> <configuration> <description>sample Adamsync configuration file</description> <security-mode>object</security-mode> <source-ad-name>erictest.local</source-ad-name> <source-ad-partition>dc=erictest,dc=local</source-ad-partition> <source-ad-account></source-ad-account> <account-domain></account-domain> <target-dn>dc=SyncTargetDC</target-dn> <query> <base-dn>dc=erictest,dc=local</base-dn> <object-filter>(objectClass=*)</object-filter> <attributes> <include></include> <exclude>extensionName</exclude> <exclude>displayNamePrintable</exclude> <exclude>flags</exclude> <exclude>isPrivelegeHolder</exclude> <exclude>msCom-UserLink</exclude> <exclude>msCom-PartitionSetLink</exclude> <exclude>reports</exclude> <exclude>serviceprincipalname</exclude> <exclude>accountExpires</exclude> <exclude>adminCount</exclude> <exclude>primarygroupid</exclude> <exclude>userAccountControl</exclude> <exclude>codePage</exclude> <exclude>countryCode</exclude> <exclude>logonhours</exclude> <exclude>lockoutTime</exclude> </attributes> </query> <schedule> <aging> <frequency>0</frequency> <num-objects>0</num-objects> </aging> <schtasks-cmd></schtasks-cmd> </schedule> </configuration> <synchronizer-state> <dirsync-cookie></dirsync-cookie> <status></status> <authoritative-adam-instance></authoritative-adam-instance> <configuration-file-guid></configuration-file-guid> <last-sync-attempt-time></last-sync-attempt-time> <last-sync-success-time></last-sync-success-time> <last-sync-error-time></last-sync-error-time> <last-sync-error-string></last-sync-error-string> <consecutive-sync-failures></consecutive-sync-failures> <user-credentials></user-credentials> <runs-since-last-object-update></runs-since-last-object-update> <runs-since-last-full-sync></runs-since-last-full-sync> </synchronizer-state></doc>
C:\WINDOWS\ADAM>adamsync /install localhost:50000 ADAMSyncDemo.XMLDone.
C:\WINDOWS\ADAM>adamsync /list localhost:50000Listing configuration files:---------------------------|-> "OU=SyncTarget": sample Adamsync configuration fileDone.
C:\WINDOWS\ADAM>adamsync /sync localhost:50000 dc=synctargetdcC:\WINDOWS\ADAM>