-1

I'm doing an internship and my task is to implement single sign-on into an existing Symfony2 project with Twig templating. More info about the single sign-on: I have to get the name of the user logged into the PC. Based on that name, I have to do other things.

I just discovered this bundle, but I don't know if it fits my situation.

At this moment, I am pretty new to Symfony2 and its habits. I have never done a task like this so any help would be much appreciated.

JensLuyten
  • 41
  • 3

1 Answers1

0

If you are in a Windows Domain, you can use Kerberos in order to retrieve the windows username.

See http://www.grolmsnet.de/kerbtut/ for more details.

In PHP, $_SERVER["REMOTE_USER"] will give you the windows username.

Symfony 2.6 is able to use this variable for authentification (http://symfony.com/blog/new-in-symfony-2-6-security-component-improvements)

griotteau
  • 1,772
  • 12
  • 15