I am running an web application on IIS 6, Windows Server 2003 and it runs under local user IUSR_MachineName.
We have a shared folder, for example \\server\path
somewhere on our network and only one active directory user has read/write access to it. How can I read/write files from asp.net from/to this folder with this user's active directory credential?
I could change the user under which IIS runs, but I can't (read - not allowed). Now I am reading about impersonation, but any tips on this would be much appreciated...
Edit - I need those basic functionality on the shared folder:
- Directory.Delete
- Directory.Exists
- File.Exists
- File.Delete
- DirectoryInfo.GetFiles
- FileUpload.SaveAs
- ...