简体   繁体   English

apache linux中的LDAP身份验证

[英]Ldap authentication in apache linux

I am doing SSO integration in my project.我正在我的项目中进行 SSO 集成。 Where my PHP application is hosted in linux environment with Apache server.我的 PHP 应用程序托管在带有 Apache 服务器的 linux 环境中。 I am currently trying to implement LDAP module and getting success when entered username and password.我目前正在尝试实现 LDAP 模块并在输入用户名和密码时获得成功。

But I need to know how I can implement autologin function if my website application client is using Windows OS and IE or other supporting browsers.但是我需要知道如果我的网站应用程序客户端使用 Windows 操作系统和 IE 或其他支持的浏览器,我如何实现自动登录功能。

Kindly advice.友善的建议。 Thanks in advance.提前致谢。

For doing the LDAP implementation you can use the php ldap library http://php.net/ldap , I use it for my projects, but sometimes is a little tricky.对于 LDAP 实现,您可以使用 php ldap 库http://php.net/ldap ,我将它用于我的项目,但有时有点棘手。

In the other hand, in able to do an autologin, the browser is the one that must pass the login information to your page(php) to be able to perform some kind of authentication.另一方面,为了能够进行自动登录,浏览器必须将登录信息传递到您的页面(php)才能执行某种身份验证。 So to be honest, autologin is not possible it will be a very bad security risk to be able to get user credentials via a browser.所以说实话,自动登录是不可能的,能够通过浏览器获取用户凭据将是一个非常糟糕的安全风险。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM