title: Symfony2: automatically logging in users from their Windows session
body: <p>In <code>Symfony2</code> I have built an intranet. It currently uses the <code>FOSUserBundle</code> and an <code>LDAP bundle</code> to log users in, and I would like to add the functionality to log in user from their session in Windows.</p>
  
  <p>I found <a href="http://siphon9.net/loune/2007/10/simple-lightweight-ntlm-in-php/" rel="noreferrer">an NTLM script</a> for PHP and <a href="http://siphon9.net/loune/2010/11/php-ntlm-now-working-with-lighttpdfastcgi/" rel="noreferrer">an updated version</a> of it, but I haven't been able to incorporate them into Symfony2.</p>
  
  <p>I also found <a href="https://github.com/ecoad/NtlmBundle" rel="noreferrer">an NTLM bundle for Symfony2</a>, but it was written for an older version of Symfony and it is not maintained anymore. I was unable to rewrite it and get it to work.</p>
  
  <p>My question is; how could I automatically log in users from their Windows session in my Symfony2-app, in addition to the already present <code>LDAP</code> functionality? What would be the best and easiest way?</p>