简体   繁体   English

ldap_bind PHP身份验证

[英]ldap_bind PHP authentication

I am trying to authenticate users against Active Directory with PHP for access to a web page. 我正在尝试使用PHP通过Active Directory对用户进行身份验证以访问网页。

ldap_bind works fine for users who are setup with "Logon Workstations" set to "All computers" in Active Directory but not for users who are setup with their computer name in "The following computers" option which only allows them to log on to their own pc. ldap_bind对于在Active Directory中将“登录工作站”设置为“所有计算机”的用户有效,但不适用于在“以下计算机”选项中设置其计算机名称的用户,只能允许他们自己登录个人电脑

Is there a way to just authenticate if the users username/password combination are correct and not have it check the computers they can log on to? 如果用户名/密码组合正确无误,是否有一种方法可以验证用户登录的计算机?

If I understand your question correctly, you are trying to allow for manual authentication for users who are not automatically logged in. 如果我正确理解了您的问题,则说明您试图允许未自动登录的用户进行手动身份验证。

I have something similar to this setup on my company's intranet, where if a user is not automatically authenticated they are presented with a login form that submits to a controller that uses the adLDAP library to pass the username and password to the LDAP server for authentication. 我在公司的Intranet上有类似的设置,如果未自动验证用户身份,他们将看到一个登录表单,该表单提交给使用adLDAP库将用户名和密码传递给LDAP服务器进行身份验证的控制器。

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

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