A
ADNT
Hello,
I am migrating an asp.net application from IIS6 to IIS7, this application
uses the 2 authentication modes: Windows and Forms.
For Windows authentication, my web config contains line
<authentication mode="Windows"/>
<authorization>
<deny users="?"/>
</authorization>
<identity impersonate="true"/>
<membership defaultProvider="MyMembershipProvider"
userIsOnlineTimeWindow="15">
<providers>
<clear/>
<add name="MyProvider" type="MyMembershipProvider"
connectionStringName="My_ConnectionString" applicationName="MyApp"
enablePasswordRetrieval="false" enablePasswordReset="true"
requiresQuestionAndAnswer="true" requiresUniqueEmail="true"
passwordFormat="Hashed"/>
</providers>
</membership>
I am very dispointed by the fact that in the PostAuthentication event the
Request.LogonUserIdentity contains 'NT Authority\NetworkService' and not the
current logged user ?
Before this event Current Ueer has been correctly presented in
WindowsAuthentication_OnAuthenticate(object sender,
WindowsAuthenticationEventArgs args), inside the arg parameter, my app uses
it to create an IIdentity and set it as the current session User.
But why the impersonate statment doesn't works ? Could it be an error in
web.config ?
Thanks for help.
CS
I am migrating an asp.net application from IIS6 to IIS7, this application
uses the 2 authentication modes: Windows and Forms.
For Windows authentication, my web config contains line
<authentication mode="Windows"/>
<authorization>
<deny users="?"/>
</authorization>
<identity impersonate="true"/>
<membership defaultProvider="MyMembershipProvider"
userIsOnlineTimeWindow="15">
<providers>
<clear/>
<add name="MyProvider" type="MyMembershipProvider"
connectionStringName="My_ConnectionString" applicationName="MyApp"
enablePasswordRetrieval="false" enablePasswordReset="true"
requiresQuestionAndAnswer="true" requiresUniqueEmail="true"
passwordFormat="Hashed"/>
</providers>
</membership>
I am very dispointed by the fact that in the PostAuthentication event the
Request.LogonUserIdentity contains 'NT Authority\NetworkService' and not the
current logged user ?
Before this event Current Ueer has been correctly presented in
WindowsAuthentication_OnAuthenticate(object sender,
WindowsAuthenticationEventArgs args), inside the arg parameter, my app uses
it to create an IIdentity and set it as the current session User.
But why the impersonate statment doesn't works ? Could it be an error in
web.config ?
Thanks for help.
CS