简体   繁体   English

从Windows身份验证IIS中为PHP应用程序提取登录信息

[英]Pulling login information from windows authentication IIS for PHP application

I have an IIS 8 webserver hosting a PHP web application. 我有一个IIS 8网络服务器托管PHP Web应用程序。 There is a management page that requires windows authentication via the web.config file. 有一个管理页面需要通过web.config文件进行Windows身份验证。

Is there any way to pull any identifying information that could be passed to the PHP application? 有没有办法提取任何可以传递给PHP应用程序的识别信息?

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. 有一次,我确实在cookie中获得了一些识别信息,但这并不一致。

Both of these did the trick: 这两个都有诀窍:

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

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

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