简体   繁体   中英

Pulling login information from windows authentication IIS for PHP application

I have an IIS 8 webserver hosting a PHP web application. There is a management page that requires windows authentication via the web.config file.

Is there any way to pull any identifying information that could be passed to the PHP application?

I've tried pulling the headers but nothing in there seems of any use. At one point I did get some identifying information in the cookie but that is not consistent.

Both of these did the trick:

$_SERVER['LOGON_USER'];
$_SERVER['AUTH_USER'];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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