J
Jiho Han
Should ASPNET user belong to the local Users group?
I may have made some changes that affected my workstation setup and I am
experiencing some unexpected behaviors.
For example, I have my IIS set up with anonymous login and have ASP.NET
running.
My ASP.NET application then creates a log file and writes to it during its
course. The only thing is that it should not be able to.
My questions are below. Please correct any incorrect assumptions I make as
well:
1. When IIS is in anonymous mode, ASP.NET app runs as ASPNET(or NETWORK
SERVICE) user.
Would <identity impersonate="true"> make the app run as IUSER_MACHINENAME
user?
2. When IIS in in windows authentication mode, ASP.NET app still runs as
APNET(or NETWORK SERVICE) user unless you specify <identity
impersonate="true"> in which case, the app will run as the user
authenticated by IIS.
Also, this may seem like a stupid question but does <identity
impersonate="true"> have effect on only the resources that are requested by
the application, - i.e. file system access, directory service, etc. - or
does it change the user who's making the request in the first?
Within the app, if I queried for the current user executing the app, would I
see IUSER_MACHINENAME in #1 and the authenticated user in #2? If I
specified a user in #2 (by supplying user/pass), would I see the specified
user from the app or does it only affect the access to the resources?
I hope the questions are not too confusing and thanks for your help.
Jiho
I may have made some changes that affected my workstation setup and I am
experiencing some unexpected behaviors.
For example, I have my IIS set up with anonymous login and have ASP.NET
running.
My ASP.NET application then creates a log file and writes to it during its
course. The only thing is that it should not be able to.
My questions are below. Please correct any incorrect assumptions I make as
well:
1. When IIS is in anonymous mode, ASP.NET app runs as ASPNET(or NETWORK
SERVICE) user.
Would <identity impersonate="true"> make the app run as IUSER_MACHINENAME
user?
2. When IIS in in windows authentication mode, ASP.NET app still runs as
APNET(or NETWORK SERVICE) user unless you specify <identity
impersonate="true"> in which case, the app will run as the user
authenticated by IIS.
Also, this may seem like a stupid question but does <identity
impersonate="true"> have effect on only the resources that are requested by
the application, - i.e. file system access, directory service, etc. - or
does it change the user who's making the request in the first?
Within the app, if I queried for the current user executing the app, would I
see IUSER_MACHINENAME in #1 and the authenticated user in #2? If I
specified a user in #2 (by supplying user/pass), would I see the specified
user from the app or does it only affect the access to the resources?
I hope the questions are not too confusing and thanks for your help.
Jiho