G
Guest
Hi,
I have a dev machine, part of a domain, with a site set to Integrated
security only. I want to determine the username of person accessing the
page. When I run the page with the following code:
Response.Write(Request.ServerVariables["AUTH_USER"]);
Response.Write("<BR>");
Response.Write(HttpContext.Current.User.Identity.Name);
It outputs:
DEVSERVERNAME\Administator
DEVSERVERNAME\Administator
but I thought it would be my username ("US" stands for our US domain):
US\dsmith
US\dsmith
I took "dsmith" out of the Administrators group but I still get the
Administrator to appear.
Another user tested the page and she got her credentials displayed back OK.
What am I not getting? Thanks.
I have a dev machine, part of a domain, with a site set to Integrated
security only. I want to determine the username of person accessing the
page. When I run the page with the following code:
Response.Write(Request.ServerVariables["AUTH_USER"]);
Response.Write("<BR>");
Response.Write(HttpContext.Current.User.Identity.Name);
It outputs:
DEVSERVERNAME\Administator
DEVSERVERNAME\Administator
but I thought it would be my username ("US" stands for our US domain):
US\dsmith
US\dsmith
I took "dsmith" out of the Administrators group but I still get the
Administrator to appear.
Another user tested the page and she got her credentials displayed back OK.
What am I not getting? Thanks.