Edit UserMappings.xml

The intension of the project is to impersonate the incomming user with an appropriate Tfs user.
Passwords are now cyphered and will be decrypted by the web app while loading.
An easy XML file is used to configure the bindings:

<?xml version="1.0" encoding="utf-8"?>
<ArrayOfTfsImpersonationMap xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <TfsImpersonationMap>
    <SourceUserName>MyCompanyDomain\MyDomainAccount</SourceUserName>
    <TargetUserName>MyLocalTfsAccount</TargetUserName>
    <TargetPassword>72-34-23</TargetPassword>
  </TfsImpersonationMap>
  <TfsImpersonationMap>
    <SourceUserName>ExampleCompany\John Doe</SourceUserName>
    <TargetUserName>Administrator</TargetUserName>
    <TargetPassword>66-55-44</TargetPassword>
  </TfsImpersonationMap>    
</ArrayOfTfsImpersonationMap>

How-to save cyphered passwords

  1. Create UserMapping.xml File as shown above. You can leave password field empty
  2. copy TFSBugTracking.PasswordProtector.exe and UerMappings.xml into the same directory
  3. call TFSBugTracking.PasswordProtector.exe -u:MyLocalTfsAccount -p:MyPassword to uptate the file
  4. repeate the above step for each user you want to change the password.

Last edited Apr 7, 2011 at 8:25 PM by Trace79, version 3

Comments

No comments yet.