Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Difference in DefaultCredentials bewtween IIS6 and IIS7 in IP mode in PostAuthenticate when Impersonat='true'

Reply
Thread Tools

Difference in DefaultCredentials bewtween IIS6 and IIS7 in IP mode in PostAuthenticate when Impersonat='true'

 
 
ADNT
Guest
Posts: n/a
 
      08-28-2009
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

 
Reply With Quote
 
 
 
 
ADNT
Guest
Posts: n/a
 
      08-31-2009
Somebody here ?

"ADNT" <> a écrit dans le message de
news:045B570E-4858-42E7-AED2-...
> 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
>


 
Reply With Quote
 
 
 
 
Alexey Smirnov
Guest
Posts: n/a
 
      08-31-2009
On Aug 28, 9:41*am, "ADNT" <csa...@addonnice.com> 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/a...ges-on-iis-70/
 
Reply With Quote
 
ADNT
Guest
Posts: n/a
 
      09-01-2009
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:bf399561-28cc-45f4-b7ce-...
On Aug 28, 9:41 am, "ADNT" <csa...@addonnice.com> 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/a...ges-on-iis-70/

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet Explorer and Kernel mode authentication on IIS7 Peter Larsen [CPH] ASP .Net Security 2 08-11-2010 12:32 PM
Upgrade from IIS6 to IIS7 on 2000 server Tedmond ASP .Net Web Services 1 07-18-2009 02:59 PM
IIS7, VS2008 debug mode and Cache.Insert thread results NullReferenceException Max2006 ASP .Net 3 02-23-2009 07:36 AM
Moving from IIS6 to IIS7 and it won't load David Thielen ASP .Net 2 09-11-2008 06:02 AM
difference bewtween static and dynamic inheritance? puzzlecracker C++ 1 01-06-2006 02:40 PM



Advertisments
 



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