That is really strange...I have thought of a couple things to try out.
Add the following section to your web.config on the dev server.
<authorization>
<allow users="us\dsmith" />
<deny users="*" />
</authorization>
It should prompt you for a login box since it is trying to authenticate you
as devserver/administrator. Try to login with your us/dsmith login on the
box and see what happens.
Are you using impersonation on the server?
The identity sent to the webserver comes from the browser settings. It is
at all possible that you have logged in and chose to save password in the
past. Perhaps your IE has cached the username/password and it resending it
to the server.
If this is possibly the case, maybe you could try reseting the administrator
password on your dev server. That way if any user/pass has been cached, it
will fail and prompt you for the login box.
Just shooting in the dark here.
HTH,
bill
"Dave" <Da**@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
That's what's weird. I'm browsing it from my desktop and logged in with
my domain account.
"William F. Robertson, Jr." wrote:
Are you one the server when you are testing it? Or are you hitting it
remotely. The User.Indentity.Name should display the name you are
logged as on the machine the browser is on.
bill
"Dave" <Da**@discussions.microsoft.com> wrote in message
news:58**********************************@microsof t.com... 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.N ame);
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.