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

A

ADNT

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
 
G

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

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/
 
A

ADNT

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



"Anon User" <> a écrit dans le message de
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/
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top