Getting blank value for $_SERVER['AUTH_USER']

后端 未结 3 1923
星月不相逢
星月不相逢 2021-02-20 11:59

I have a PHP app running on Windows 2008 server R2, which authenticates users against Active Directory using PHP\'s LDAP library.

As per this answer, I\'m looking to use

3条回答
  •  既然无缘
    2021-02-20 12:29

    According to the PHP documentation, the correct index seems to be PHP_AUTH_USER.

    Try using $_SERVER['PHP_AUTH_USER'].

提交回复
热议问题