title: Delimiter between domain and username in jenkins user is sometimes \, sometimes _ Why?
body: <p>I'm seeing some odd things with jenkins and sending mail.  For some users mail is sent to DOMAIN_username@company.com - some are fine.</p>
  
  <p>Jenkins is using  AD for authentication - most users haven't actually logged into jenkins, the username comes from svn. 
  my svn server is a windows2008 server using sspi to authenticate:</p>
  
  <pre><code># authentication
  AuthName "Subversion Authentication"
  AuthType SSPI
  SSPIAuth On
  SSPIAuthoritative On
  SSPIDomain COMPANY
  SSPIOfferBasic On
  Require valid-user
  </code></pre>
  
  <p>the best place to see it is in the <code>http://jenkins/job/job-name/1234/api/json</code> and look at culprits</p>
  
  <pre><code>"culprits":[
  {"absoluteUrl":"http://jenkins/user/DOMAIN_asmith","fullName":"DOMAIN_asmith"},
  {"absoluteUrl":"http://jenkins/user/DOMAIN_bobama","fullName":"DOMAIN\\bobama"}
  ]
  </code></pre>
  
  <p>Things are goign to work fine for bobama, but note asmith - the email will go to DOMAIN_asmith@company.com (which won't deliver)</p>
  
  <p>If I look at the users configuration page <code>http://jenkins/user/DOMAIN_asmith/configure</code></p>
  
  <p>I see his email is actually listed as DOMAIN_asmith@company.com, bobama looks fine.</p>
  
  <p>These values aren't coming from the user (neither has ever logged in to jenkins) - they're coming from AD by way of SVN.
  I'm stuck - anyone point me in a better direction?</p>