Zephree
Zephree

Reputation: 151

Can PHP access Active Directory username in all browsers?

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 Directory username?

Upvotes: 5

Views: 363

Answers (2)

Narf
Narf

Reputation: 14752

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.

Upvotes: 3

Ed Manet
Ed Manet

Reputation: 3178

You might want to look into mod_authnz_ldap

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

Upvotes: 0

Related Questions