dongyou8701 2015-11-19 16:47
浏览 70
已采纳

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

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.

  • 写回答

1条回答 默认 最新

  • douduoquan2824 2016-04-12 01:31
    关注

    Both of these did the trick:

    $_SERVER['LOGON_USER'];
    $_SERVER['AUTH_USER'];
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 slam rangenet++配置
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料
  • ¥15 使用R语言marginaleffects包进行边际效应图绘制
  • ¥20 usb设备兼容性问题
  • ¥15 错误(10048): “调用exui内部功能”库命令的参数“参数4”不能接受空数据。怎么解决啊