iis 7.5 - Impersonation and forms authentication: why is this asp.net configuration working? -
i inherited asp.net website type app has following security settings in web.config:
<authentication mode="forms"> <forms loginurl="~/signin.aspx" /> </authentication> <identity impersonate="true" /> <authorization> <allow users="?" /> </authorization> the application wired application pool running classic pipeline under domain account, let's call svcacct.
the anonymous user identity set application pool identity.
here questions:
does configuration make sense, in particular having anonymous authentication , forms authentication @ same time? though can access page without being authenticated, behind scenes, app checks session variables set after logging in via form , rejects access.
svcacct doesn't have permission read content of folder pages deployed. why still working? svcacct not member of local group, , not member of iis_iusrs group far see. users authenticated manually against ad. understanding iis app uses pool identity read/compile pages , authenticated user identity execute them given impersonate=true.
i found this: https://msdn.microsoft.com/en-us/library/ff649264.aspx lays out nicely options (table 1, row 3), however, don't know if applies in case.
thanks!
update: think answer #2 given paragraph here:
iis 7 , above makes process of configuring application pool identity , making necessary changes easier. when iis starts worker process, needs create token process use. when token created, iis automatically adds iis_iusrs membership worker processes token @ runtime. accounts run 'application pool identities' no longer need explicit part of iis_iusrs group. change helps set systems fewer obstacles , makes overall experience more favorable.
the iis_iusrs has read access on folder , because svcact set identity of pool added automatically iis_iusrs group.
Comments
Post a Comment