Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP .Net Security (http://www.velocityreviews.com/forums/f62-asp-net-security.html)
-   -   ASP.NET User.Identity.Name returns wrong value? (http://www.velocityreviews.com/forums/t767270-asp-net-user-identity-name-returns-wrong-value.html)

JohnH. 03-18-2005 09:01 PM

ASP.NET User.Identity.Name returns wrong value?
 
When I got Visual Studio setup and configured to remotely debug c#
ASP.NET applications on a development IIS server I apparently changed
something on one of my .config files.

(1) When I login into my workstation using my domain account and
connect to our development IIS server User.Identity.Name should return
my domain user account. Instead, User.Identity.Name returns the local
Administrator account on the development IIS server.

(2) When I login into my workstation using another user's domain
account and connect to our development IIS server User.Identity.Name
returns that user's domain account.

(3) When I login into my workstation using my domain account and
connect to our production IIS server User.Identity.Name properly
returns my domain user account.

Since, other users can login to my workstation and get the correct
response from the development server it seems to me the problem is
somewhere in my profile.

Anybody got any ideas? I've been struggling with this for days.

Thanks,
John


Nicole Calinoiu 03-18-2005 09:27 PM

Re: ASP.NET User.Identity.Name returns wrong value?
 
What do you mean by "connect to our development IIS server"? Open a page
via IE? Start debugging a project via VStudio? Something else entirely?


"JohnH." <john@jrcc.net> wrote in message
news:1111179704.797874.172670@l41g2000cwc.googlegr oups.com...
> When I got Visual Studio setup and configured to remotely debug c#
> ASP.NET applications on a development IIS server I apparently changed
> something on one of my .config files.
>
> (1) When I login into my workstation using my domain account and
> connect to our development IIS server User.Identity.Name should return
> my domain user account. Instead, User.Identity.Name returns the local
> Administrator account on the development IIS server.
>
> (2) When I login into my workstation using another user's domain
> account and connect to our development IIS server User.Identity.Name
> returns that user's domain account.
>
> (3) When I login into my workstation using my domain account and
> connect to our production IIS server User.Identity.Name properly
> returns my domain user account.
>
> Since, other users can login to my workstation and get the correct
> response from the development server it seems to me the problem is
> somewhere in my profile.
>
> Anybody got any ideas? I've been struggling with this for days.
>
> Thanks,
> John
>




JohnH. 03-18-2005 09:38 PM

Re: ASP.NET User.Identity.Name returns wrong value?
 
Browse a page via IE, also run/debug the page via Visual Studio. Also,
when I log into other workstation w/ my domain account and browse web
pages on the development server User.Identity.Name returns my domain
account. It is only when I log into my personal workstation and browse
pages on the development server that User.Identity.Name return the
local admin account of the development server.

Thanks,
John


Nicole Calinoiu 03-21-2005 06:38 PM

Re: ASP.NET User.Identity.Name returns wrong value?
 
John,

I'm guessing that when you "log into my personal workstation", you're using
a local account that has cached credentials for the web server. To verify
this, log in under that account, then launch the "User Accounts" control
panel applet. You want to reach the password management functionality,
which will be available in one of the following two ways:

1. If your account is not an admin, you will be asked to provide admin
credentials when launching the applet. Below the credentials text boxes,
there should be a link to "manage your passwords", which you should click
instead of providing admin credentials.

2. If your account is an admin, click the "Manage Passwords" button on the
advanced tab of the applet UI.

Once you've opened the password list, do you see an entry for your dev
server? If so, delete it (you can always recreate it later), then try to
browse to a secured page your dev server using IE.

HTH,
Nicole


"JohnH." <john@jrcc.net> wrote in message
news:1111181903.064959.154540@g14g2000cwa.googlegr oups.com...
> Browse a page via IE, also run/debug the page via Visual Studio. Also,
> when I log into other workstation w/ my domain account and browse web
> pages on the development server User.Identity.Name returns my domain
> account. It is only when I log into my personal workstation and browse
> pages on the development server that User.Identity.Name return the
> local admin account of the development server.
>
> Thanks,
> John
>




JohnH. 03-22-2005 02:48 PM

Re: ASP.NET User.Identity.Name returns wrong value?
 
Nicole,

That worked!!! Oh my God! I can not tell you how much I have
been struggling with that. It was driving me absolutely crazy. Thank
you so much for taking the time to respond to my question.

8-)
John


JohnH. 03-22-2005 09:09 PM

Re: ASP.NET User.Identity.Name returns wrong value?
 
Nicole,

Wow, that was it. Thank you for taking the time to respond to my
posting. This was really driving me nuts.

John



All times are GMT. The time now is 08:15 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.