Difference between HttpContext.Current.User.Identity and identity Impersonation

Discussion in 'ASP .Net' started by Giovanni Bassi, Oct 20, 2003.

  1. Hello Group,

    I using impersonation on my web app. I am explicitely setting the User with
    the identity element in the web.config like this:
    <identity impersonate="true" userName="MyUsr" password="MyPass" />
    But if I ask for HttpContext.Current.User.Identity.Name it returns my
    personal Login name, in the format DOMAIN\USERNAME.
    Shouldn't they be the same? Shouldn't it return MACHINE\MyUsr?

    Tks to all the replies,

    Giovanni Bassi
     
    Giovanni Bassi, Oct 20, 2003
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dan Bart
    Replies:
    4
    Views:
    29,176
    Andrea D'Onofrio [MSFT]
    Dec 18, 2003
  2. Replies:
    10
    Views:
    3,669
    Kiran_S_Rao
    Dec 8, 2004
  3. =?Utf-8?B?dnZlbms=?=

    Help with HttpContext.Current.User.Identity.Name

    =?Utf-8?B?dnZlbms=?=, Sep 29, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    723
    Brock Allen
    Sep 29, 2005
  4. Replies:
    2
    Views:
    6,117
    Ken Dopierala Jr.
    Oct 17, 2005
  5. nalbayo
    Replies:
    2
    Views:
    5,864
    Bruce Barker
    Nov 11, 2005
  6. sripathi
    Replies:
    0
    Views:
    1,626
    sripathi
    Dec 31, 2009
  7. Frederick D'hont
    Replies:
    0
    Views:
    545
    Frederick D'hont
    Jul 25, 2005
  8. Replies:
    5
    Views:
    2,863
    Dominick Baier [DevelopMentor]
    Nov 8, 2005
Loading...