开发者

Can PHP access Active Directory username in all browsers?

开发者 https://www.devze.com 2023-04-01 23:15 出处:网络
I\'m running PHP on a Windows server (xammp install), not on IIS. Is there any sort of mod that can be installed for Apache that will allow me to grab the users Active Direct开发者_StackOverflow中文版

I'm running PHP on a Windows server (xammp install), not on IIS.

Is there any sort of mod that can be installed for Apache that will allow me to grab the users Active Direct开发者_StackOverflow中文版ory username?


You can use Apache's mod_auth_sspi.

It does not, however work out of the box in all browsers.

  • Internet Explorer, being a Microsoft product will automatically log you in, if you're using AD Domain authentication and if not - will fall back to asking you for your username and password.
  • Firefox and Chrome will ask you for your username and password and I think that they both can be configured to act as IE, but will require some tweaking.
  • Opera will have problems passing creditenials, unless you specifically configure the module to always use Basic HTTP auth.


You might want to look into mod_authnz_ldap

http://httpd.apache.org/docs/2.3/mod/mod_authnz_ldap.html

0

精彩评论

暂无评论...
验证码 换一张
取 消