I'm trying to use Impersonation and Delegation in an intranet ASP.Net web-app in order to pass authenticated users' credentials onto a File Server so it can write a file to a directory.
The web server and file server are two separate machines, but in the same domain, so Delegation is required.
I've done the following:
- Set
<authentication mode="Windows"/> and <identity impersonate="true"/>
in my web-app's web.config. - Enabled Constrained Delegation from the web server to the file server's HOST service and CIFS (Common Internet File System, in Active Directory.
- Enabled only Windows Authentication in the website, through IIS.
Apparently this should all work, but it doesn't. I am getting ACCESS DENIED when I try to create a folder on the File Server from the Web App.
All the web pages I've read seem to indicate that my setup should work. What am I missing?
Notes:
- My username gets passed to the web server fine.
- I am part of a group that has full rights to the folder that I am creating the folder in.