Re: special authentication

From: Paul Clement (UseAdddressAtEndofMessage_at_swspectrum.com)
Date: 02/23/05

  • Next message: Dominick Baier [DevelopMentor]: "Re: Impersonation using WindowsIdentity( upn ) ctor"
    Date: Wed, 23 Feb 2005 09:21:16 -0600
    
    

    On Tue, 22 Feb 2005 13:31:46 -0600, "Joe Kaplan \(MVP - ADSI\)"
    <joseph.e.kaplan@removethis.accenture.com> wrote:

    ¤
    ¤ "Paul Clement" <UseAdddressAtEndofMessage@swspectrum.com> wrote in message
    ¤ news:d50n11tamp2otuj720o9rp1dnucuv8fpja@4ax.com...
    ¤ > On 22 Feb 2005 06:41:44 -0800, peter.kornills@web.de (Peter Kornills)
    ¤ > wrote:
    ¤ >
    ¤ > ¤ Hi!
    ¤ > ¤
    ¤ > ¤ My problem is quiet simple, but a solution seems to be difficult(for
    ¤ > ¤ me):
    ¤ > ¤ I've a group of users for my asp.net webapplication. In case of a
    ¤ > ¤ login the User should be authenticated automaticly (this means the
    ¤ > ¤ application should verify if he's allowed to use it).
    ¤ > ¤
    ¤ > ¤ I want to get the windows username from the client and look up in an
    ¤ > ¤ oracle database weather the user is allowed to act with the webapp. If
    ¤ > ¤ he isn't the Application will redirect to an error-message.
    ¤ > ¤
    ¤ > ¤ But it seems to be hard to get the windows-user.
    ¤ > ¤
    ¤ > ¤ I've tried to set the authentication form on "Windows" in the
    ¤ > ¤ Web.config-file
    ¤ > ¤
    ¤ > ¤ In the code behind I try to get the following value:
    ¤ > ¤
    ¤ > ¤ name = Page.User.Identity.Name
    ¤ > ¤
    ¤ > ¤ but that doesn't work.
    ¤ > ¤ Does any body have an idea to solve this problem?
    ¤ > ¤
    ¤ > ¤ Regards
    ¤ > ¤
    ¤ > ¤ Peter
    ¤ >
    ¤ > In addition to what Joe mentioned you also need to enable impersonation.
    ¤ >
    ¤ > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vsent7/html/vxconimpersonation.asp
    ¤ >
    ¤ >
    ¤ > Paul ~~~ pclement@ameritech.net
    ¤ > Microsoft MVP (Visual Basic)
    ¤
    ¤ Why?
    ¤
    ¤ All he wants to do is check to see who the authenticated user is.
    ¤ Context.User.Identity.Name (or Page.User.Identity.Name) will be the
    ¤ authenticated use regardless of what the setting for impersonation is.
    ¤ Impersonation is only needed if he needs to execute code as the
    ¤ authenticated user.
    ¤
    ¤ Joe K.
    ¤

    Yes, Joe, you're correct. I misread his post and thought he was using integrated security with
    Oracle.

    Paul ~~~ pclement@ameritech.net
    Microsoft MVP (Visual Basic)


  • Next message: Dominick Baier [DevelopMentor]: "Re: Impersonation using WindowsIdentity( upn ) ctor"

    Relevant Pages

    • Clothes from Target again (Paul & Joe, etc.)
      ... with the clothes I ordered from Paul & Joe and Isaac Mizrahi. ... The Paul and Joe cords were great, ...
      (alt.fashion)
    • Clothes from Target again (Paul & Joe, etc.)
      ... with the clothes I ordered from Paul & Joe and Isaac Mizrahi. ... The Paul and Joe cords were great, ...
      (alt.fashion)
    • Re: Attn JMS - scripts for visually impaired? (was Re: an update
      ... >> Paul (feeling soiled just being here. ... that to be in the moderated newsgroup, you have to have sipped of the Kool ... complimentary said to Joe _at all_ is somehow an attempt to kiss his butt. ... other folks crying "arse-licker!" ...
      (rec.arts.sf.tv.babylon5.moderated)
    • Re: Attn JMS - scripts for visually impaired? (was Re: an update
      ... >> Paul (feeling soiled just being here. ... that to be in the moderated newsgroup, you have to have sipped of the Kool ... complimentary said to Joe _at all_ is somehow an attempt to kiss his butt. ... other folks crying "arse-licker!" ...
      (rec.arts.sf.tv.babylon5.moderated)
    • My Paul & Joe Purchase at Target
      ... All this talk here about Paul & Joe at Target prompted me to take a look at ... shirt can also double as a light jean jacket if I decide to layer it ... I also picked up this cotton long-sleeve v-neck tee with 5% spandex: ...
      (alt.fashion)