Symfony LDAP log in automatically

故事扮演 提交于 2019-12-12 02:59:46

问题


I have set up Symfony with LDAP authentication and it works just fine.

Since people are logged in on their computers with just the same credentials, I'm wondering if there's a way to pass those credentials through to Symfony so that the user doesnt have to log in manually anymore.

Hopefully, someone can help me out. :)

Thanks in advance


回答1:


What you want to do is called SingleSignOn or SSO. It usually uses something like Kerberos which in turn can use LDAP as backend to store the passwords and the user-informations.

But it usually requires specifically adapted WebServers and Browsers to work out as expected. If you are working in a plain Windows-Environment with IE as Browser and IIS as Webserver it might be easier to implement than in a mixed environment.

I'd suggest you ask your favourite search-engine for SSO or Kerberos and I'm sure you'll find some solutions. I've done a quick search myself which turned up this:

  • Kerberos authentication with Symfony2
  • http://share.ez.no/forums/general/automatic-user-logon-sso-with-active-directory-ldap-ntlm
  • Authentication into Symfony 2.0 from an external System


来源:https://stackoverflow.com/questions/35405355/symfony-ldap-log-in-automatically

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!