Integrated windows authentication and NetworkCredential

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default Integrated windows authentication and NetworkCredential

    Hi,

    I have my asp.net webpage configured to use the integrated windows
    authentication in IIS. I need to use NetworkCredential object to get access
    to a webservice and I want to retrieve the authenticated user information to
    create it so user doesn't have to re-enter password. How can I do that?

    Thanks a lot!
    -sorpor


    sorpor Guest

  2. Similar Questions and Discussions

    1. CFSchedule with Integrated Windows Authentication
      I'm trying to schedule a task to run in CFSchedule ... when I allow anonymous access it runs fine, but when I force Integrated Windows...
    2. Integrated Windows Authentication, ASP.NET and FoxPro
      Hello, Since it is the first time I'm posting in these groups, I believe a (short) introduction of myself would not be a bad thing. I am...
    3. .NET, Integrated Windows Authentication, and more
      First of all, with identity impersonate = true, I still get this blasted error: Exception Details: System.Data.SqlClient.SqlException: Login failed...
    4. integrated windows authentication - web services
      I have a performance question. I have a web service in a machine (not in the a domain at all) and the virtual directory is setup for integrated...
    5. integrated Windows authentication
      Firstly, I'm running IIS 6.0 on Windows SErver 2003 that is also a DC. I have an asp page (default.asp) I am trying to access as my hom page for...
  3. #2

    Default Re: Integrated windows authentication and NetworkCredential

    This sounds like you want to pass an already authenticated user on your
    server to another server. You cannot easily do this (its called delegation)
    without specifically enabling this for the specific user account to be
    delegated. Note that this only applies to Windows Integrated auth (as this
    "limitation" is actually a security feature and the scenario you describe is
    termed a "double hop" issue with security credentials.

    Basic auth does not ehibit this behaviour as the security credentials are
    embedded as part of the Http header and so are easily extracted and passed
    on.

    HTH

    --
    - Paul Glavich
    Microsoft MVP - ASP.NET


    "sorpor" <anonymous@discussions.microsoft.com> wrote in message
    news:uzui#UxLEHA.2500@TK2MSFTNGP12.phx.gbl...
    > Hi,
    >
    > I have my asp.net webpage configured to use the integrated windows
    > authentication in IIS. I need to use NetworkCredential object to get
    access
    > to a webservice and I want to retrieve the authenticated user information
    to
    > create it so user doesn't have to re-enter password. How can I do that?
    >
    > Thanks a lot!
    > -sorpor
    >
    >

    Paul Glavich [MVP - ASP.NET] Guest

  4. #3

    Default Re: Integrated windows authentication and NetworkCredential

    That said, if delegation is properly configured AND you are impersonating
    the user who authenticated, you can get a valid credential object via:

    System.Net.CredentialCache.DefaultCredentials

    Delegating user's credentials is one of the most often asked about, hardest
    to get working things that people try to do. You should find lots of
    answers via Google searches.

    Joe K.

    "Paul Glavich [MVP - ASP.NET]" <glav@aspalliance.com-NOSPAM> wrote in
    message news:OxWQ9HEMEHA.2584@TK2MSFTNGP12.phx.gbl...
    > This sounds like you want to pass an already authenticated user on your
    > server to another server. You cannot easily do this (its called
    delegation)
    > without specifically enabling this for the specific user account to be
    > delegated. Note that this only applies to Windows Integrated auth (as this
    > "limitation" is actually a security feature and the scenario you describe
    is
    > termed a "double hop" issue with security credentials.
    >
    > Basic auth does not ehibit this behaviour as the security credentials are
    > embedded as part of the Http header and so are easily extracted and passed
    > on.
    >
    > HTH
    >
    > --
    > - Paul Glavich
    > Microsoft MVP - ASP.NET
    >
    >
    > "sorpor" <anonymous@discussions.microsoft.com> wrote in message
    > news:uzui#UxLEHA.2500@TK2MSFTNGP12.phx.gbl...
    > > Hi,
    > >
    > > I have my asp.net webpage configured to use the integrated windows
    > > authentication in IIS. I need to use NetworkCredential object to get
    > access
    > > to a webservice and I want to retrieve the authenticated user
    information
    > to
    > > create it so user doesn't have to re-enter password. How can I do that?
    > >
    > > Thanks a lot!
    > > -sorpor
    > >
    > >
    >
    >

    Joe Kaplan \(MVP - ADSI\) Guest

  5. #4

    Default Re: Integrated windows authentication and NetworkCredential

    I should also point out (thanks to the clarification by Ken Shafer), that if
    Kerberos is used, then delegation is possible, however if NTLM is used, then
    delegation is not possible. This is a limitation with the NTLM protocol.

    --
    - Paul Glavich
    Microsoft MVP - ASP.NET


    "Joe Kaplan (MVP - ADSI)" <joseph.e.kaplan@removethis.accenture.com> wrote
    in message news:uPBzhyFMEHA.3348@TK2MSFTNGP09.phx.gbl...
    > That said, if delegation is properly configured AND you are impersonating
    > the user who authenticated, you can get a valid credential object via:
    >
    > System.Net.CredentialCache.DefaultCredentials
    >
    > Delegating user's credentials is one of the most often asked about,
    hardest
    > to get working things that people try to do. You should find lots of
    > answers via Google searches.
    >
    > Joe K.
    >
    > "Paul Glavich [MVP - ASP.NET]" <glav@aspalliance.com-NOSPAM> wrote in
    > message news:OxWQ9HEMEHA.2584@TK2MSFTNGP12.phx.gbl...
    > > This sounds like you want to pass an already authenticated user on your
    > > server to another server. You cannot easily do this (its called
    > delegation)
    > > without specifically enabling this for the specific user account to be
    > > delegated. Note that this only applies to Windows Integrated auth (as
    this
    > > "limitation" is actually a security feature and the scenario you
    describe
    > is
    > > termed a "double hop" issue with security credentials.
    > >
    > > Basic auth does not ehibit this behaviour as the security credentials
    are
    > > embedded as part of the Http header and so are easily extracted and
    passed
    > > on.
    > >
    > > HTH
    > >
    > > --
    > > - Paul Glavich
    > > Microsoft MVP - ASP.NET
    > >
    > >
    > > "sorpor" <anonymous@discussions.microsoft.com> wrote in message
    > > news:uzui#UxLEHA.2500@TK2MSFTNGP12.phx.gbl...
    > > > Hi,
    > > >
    > > > I have my asp.net webpage configured to use the integrated windows
    > > > authentication in IIS. I need to use NetworkCredential object to get
    > > access
    > > > to a webservice and I want to retrieve the authenticated user
    > information
    > > to
    > > > create it so user doesn't have to re-enter password. How can I do
    that?
    > > >
    > > > Thanks a lot!
    > > > -sorpor
    > > >
    > > >
    > >
    > >
    >
    >

    Paul Glavich [MVP - ASP.NET] Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139