Difference in DefaultCredentials bewtween IIS6 and IIS7 in IP mode in PostAuthenticate when Imperson

Discussion in 'ASP .Net' started by ADNT, Aug 28, 2009.

  1. ADNT

    ADNT Guest

    Hello,

    Using Windows authentication with Impersonate=true in my web.config I
    discovered that within Global.aspx Application_PostAuthenticateRequest
    method I get different values in
    System.Net.CredentialCache.DefaultCredentials.

    It seems that with IIS6 I correctly get the windows logged user, but in
    IIS7, integrated pipeline gives me the NT Autority\Network Service account,
    why ?

    Where/When/How could I get now a credential with the windows loggued user ?

    Thanks for help.

    CS
     
    ADNT, Aug 28, 2009
    #1
    1. Advertising

  2. ADNT

    ADNT Guest

    Somebody here ?

    "ADNT" <> a écrit dans le message de
    news:...
    > Hello,
    >
    > Using Windows authentication with Impersonate=true in my web.config I
    > discovered that within Global.aspx Application_PostAuthenticateRequest
    > method I get different values in
    > System.Net.CredentialCache.DefaultCredentials.
    >
    > It seems that with IIS6 I correctly get the windows logged user, but in
    > IIS7, integrated pipeline gives me the NT Autority\Network Service
    > account, why ?
    >
    > Where/When/How could I get now a credential with the windows loggued user
    > ?
    >
    > Thanks for help.
    >
    > CS
    >
     
    ADNT, Aug 31, 2009
    #2
    1. Advertising

  3. Re: Difference in DefaultCredentials bewtween IIS6 and IIS7 in IPmode in PostAuthenticate when Impersonat='true'

    On Aug 28, 9:41 am, "ADNT" <> wrote:
    > Hello,
    >
    > Using Windows authentication with Impersonate=true in my web.config I
    > discovered that within Global.aspx  Application_PostAuthenticateRequest
    > method I get different values in
    > System.Net.CredentialCache.DefaultCredentials.
    >
    > It seems that with IIS6 I correctly get the windows logged user, but in
    > IIS7, integrated pipeline gives me the NT Autority\Network Service account,
    > why ?
    >
    > Where/When/How  could I get now a credential with the windows loggued user ?
    >
    > Thanks for help.
    >
    > CS


    It occurs because ASP.NET Integrated mode is unable to impersonate the
    request identity in the BeginRequest and AuthenticateRequest pipeline
    stages.
    http://learn.iis.net/page.aspx/381/aspnet-20-breaking-changes-on-iis-70/
     
    Alexey Smirnov, Aug 31, 2009
    #3
  4. ADNT

    ADNT Guest

    Thanks for answer Alexey,


    But My code is in the PostAuthenticate where it should be able to
    impersonate ???

    I am on 2008R2 with IIS 7.5 but I see no change concerning this point with
    IIS 7.0

    CS



    "Alexey Smirnov" <> a écrit dans le message de
    news:...
    On Aug 28, 9:41 am, "ADNT" <> wrote:
    > Hello,
    >
    > Using Windows authentication with Impersonate=true in my web.config I
    > discovered that within Global.aspx Application_PostAuthenticateRequest
    > method I get different values in
    > System.Net.CredentialCache.DefaultCredentials.
    >
    > It seems that with IIS6 I correctly get the windows logged user, but in
    > IIS7, integrated pipeline gives me the NT Autority\Network Service
    > account,
    > why ?
    >
    > Where/When/How could I get now a credential with the windows loggued user
    > ?
    >
    > Thanks for help.
    >
    > CS


    It occurs because ASP.NET Integrated mode is unable to impersonate the
    request identity in the BeginRequest and AuthenticateRequest pipeline
    stages.
    http://learn.iis.net/page.aspx/381/aspnet-20-breaking-changes-on-iis-70/
     
    ADNT, Sep 1, 2009
    #4
    1. Advertising

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. puzzlecracker
    Replies:
    1
    Views:
    570
    Victor Bazarov
    Jan 6, 2006
  2. David Thielen

    Moving from IIS6 to IIS7 and it won't load

    David Thielen, Sep 10, 2008, in forum: ASP .Net
    Replies:
    2
    Views:
    848
    Steven Cheng [MSFT]
    Sep 11, 2008
  3. Max2006
    Replies:
    3
    Views:
    1,423
    Allen Chen [MSFT]
    Feb 23, 2009
  4. Peter Larsen [CPH]

    Internet Explorer and Kernel mode authentication on IIS7

    Peter Larsen [CPH], Jul 30, 2010, in forum: ASP .Net Security
    Replies:
    2
    Views:
    1,791
    Peter Larsen [CPH]
    Aug 11, 2010
  5. Tedmond

    Upgrade from IIS6 to IIS7 on 2000 server

    Tedmond, Jul 18, 2009, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    900
    Mr. Arnold
    Jul 18, 2009
Loading...

Share This Page