Symfony LDAP自动登录 [英] Symfony LDAP log in automatically

查看:57
本文介绍了Symfony LDAP自动登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用LDAP身份验证设置了Symfony,并且效果很好.

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

由于人们使用相同的凭据登录计算机,所以我想知道是否存在将这些凭据传递给Symfony的方法,从而使用户不必再手动登录.

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. :)

预先感谢

推荐答案

您要执行的操作称为SingleSignOn或SSO.它通常使用Kerberos之类的东西,而Kerberos又可以使用LDAP作为后端来存储密码和用户信息.

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.

但是它通常需要经过专门调整的WebServer和浏览器才能按预期工作.如果您在普通的Windows环境中使用IE作为浏览器,而IIS作为Web服务器,则可能比在混合环境中更容易实现.

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.

我建议您向最喜欢的SSO或Kerberos搜索引擎询问,我相信您会找到一些解决方案.我自己进行了快速搜索,发现了这一点:

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

这篇关于Symfony LDAP自动登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆