PHP5 and $_SERVER['AUTH_USER']

liunx

Guest
I am trying to migrate an application running on MS server 2000 (php4) to MS server 2003 (php5)

The application is on an intranet and relies on being able to get the username using $_SERVER['LOGON_USER'] or $_SERVER['AUTH_USER'].

I have run a test script on the new server to list all $_SERVER variables and the username ones no longer appear.

I also installed v5 on my WinXP PC and get the same result.

Is this a 'feature' with PHP5 and is there a workaround?Solved.

It was an IIS issue. I had to to disallow anonymous access. One of those checkboxes hidden behind a button on security tab of the properties dialog.

However, where php4 returned "domain\\username", php5 returns "domain\username"However, where php4 returned "domain\\username", php5 returns "domain\username"
Same exact php.ini? Sounds to me like your PHP5 install has magic_quotes disabled, and your PHP4 didn't. This is all speculation, however :)I am trying to migrate an application running on MS server 2000 (php4) to MS server 2003 (php5)

The application is on an intranet and relies on being able to get the username using $_SERVER['LOGON_USER'] or $_SERVER['AUTH_USER'].

I have run a test script on the new server to list all $_SERVER variables and the username ones no longer appear.

I also installed v5 on my WinXP PC and get the same result.

Is this a 'feature' with PHP5 and is there a workaround?

This is perhaps an old thread, but I try anuway. Did you get this to work?
I have tried to get windows usernamne wihtout any success.
I a'm using Apache 2.2.6 and php5.

Can someone tell what all I need to do if I wan纾
 
Back
Top