B
benny
I have a ASP.NET application with web.config specified:
<identity impersonate=true/>
<authentication mode="Windows" />
If I login to the client browser as JSMITH and have the server code trying to access a network shared drive via Directory.GetFiles("\\\\machineb\\sharedriveb"), I get an access deny error. JSMITH has full rights to access \\machineb\sharedriveb and its contents.
If the server code access a local folder with only access to JSMITH, I have no problems with JSMITH logging in via the client browser.
The only difference I see is that it cannot access network resources. My understanding is that ASP.NET will use the impersonated token to run the code and hence the impersonated token (JSMITH) has access to the resource.
Any suggestions?
<identity impersonate=true/>
<authentication mode="Windows" />
If I login to the client browser as JSMITH and have the server code trying to access a network shared drive via Directory.GetFiles("\\\\machineb\\sharedriveb"), I get an access deny error. JSMITH has full rights to access \\machineb\sharedriveb and its contents.
If the server code access a local folder with only access to JSMITH, I have no problems with JSMITH logging in via the client browser.
The only difference I see is that it cannot access network resources. My understanding is that ASP.NET will use the impersonated token to run the code and hence the impersonated token (JSMITH) has access to the resource.
Any suggestions?