Symfony2: automatically logging in users from their Windows session

Posted by Paul Maclean on Stack Overflow See other posts from Stack Overflow or by Paul Maclean
Published on 2013-05-29T10:18:28Z Indexed on 2013/06/26 22:22 UTC
Read the original article Hit count: 726

Filed under:
|
|
|
|

In Symfony2 I have built an intranet. It currently uses the FOSUserBundle and an LDAP bundle to log users in, and I would like to add the functionality to log in user from their session in Windows.

I found an NTLM script for PHP and an updated version of it, but I haven't been able to incorporate them into Symfony2.

I also found an NTLM bundle for Symfony2, 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.

My question is; how could I automatically log in users from their Windows session in my Symfony2-app, in addition to the already present LDAP functionality? What would be the best and easiest way?

© Stack Overflow or respective owner

Related posts about Windows

Related posts about authentication