title: Authenticate with SSPI to vSphere using C# API
body: <p>I am using the C# library for connecting to vSphere (VimClient).  I use this method to log in:</p>
  
  <pre><code>VimClient client = new VimClient();
  client.Connect("https://vSphereMachine/sdk");
  client.Login("userName", "password");
  </code></pre>
  
  <p>The user I'm logging in as is the current user used by the process.  Is there a way I can use the current logged in user for authentication?</p>
  
  <p>This thread seems to offer suggestions but nothing I tried there works: <a href="http://communities.vmware.com/message/1125103" rel="nofollow">http://communities.vmware.com/message/1125103</a></p>
  
  <p>That may be because I'm not familiar with the SSPI implementation in .NET.</p>