Hello all, I've noticed an anomaly,
I am running IIS w/ Windows 2000 Server.
When I disable Anonymous Access (and enable Integrated Windows Auth) in order to pull the DOMAIN\username from the clients (intranet) it works GREAT in ASP.. using:
resp1 = Request.ServerVariables("LOGON_USER")
' or
resp2 = Request.ServerVariables("AUTH_USER")
Response.Write resp1
Response.Write "<br>"
Response.Write resp2
Response.Write "<br>"
%>
This works fabulous, When I attempt to do it in PHP...
echo $_SERVER['AUTH_USER'];
echo $_SERVER['LOGON_USER'];
It will work, ONLY if I ran the ASP script first! If I do not, it requests a username and password, and will only authenticate if that is a valid user on the system!
I am on a different domain as the webserver, I have yet to test with a client on the same domain, but I do not see how it would matter.
The only ASP is self contained and I can't and won't re-write everything in ASP.
What options do I have, the boss's are pretty definate about not having a seperate login/pass system, but want authentication.
I was thinking of checking for a cookie (which I do not want), with the username & domain, if it doesnt exist, pass off to the ASP script (with a parameter of the page that the person was attempting to access) that will check the user/domain and pass back to the rest of the site.
If anyone knows of an easier way, or has had this problem before, please let me know..
Running:
PHP 5.2.0 w/ IIS 5 w/ .NET 2.0
Thanks in advance....