I need to find the IIS8 configuration that allows this code to work with Windows Authentication Enabled. No Anonymous access.
I have a three lines of code written with Classic ASP that are meant to create a folder on a network share. It is setup as Windows Authentication. It gives me a classic ASP error stating the "permission is denied" on the .CreateFolder line.
Classic ASP
strFolderToCreate = "\\ServerABC\ShareName\Test1"
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
objFSO.CreateFolder(strFolderToCreate)
It works in the following scenarios:
- Old Server was IIS6 on Windows Server 2003. Works fine
- New Server is Windows Server 2012 with IIS8. When setup to Anonymous access only (this will use App Pool Identity), works fine
Does not work with Windows Auth:
- When set to Windows Authentication, it does not work.
Every user in the company has access to create anything in this folder at both the folder level and the shared level. You can go to the folder and create folders fine. I've tried lots of things, such as Classic Pipeline, Integrated Pipeline, Changes of App Pool Identities, etc.
I cannot figure out how to have this work with Windows Authentication. Is this a double hop situation where the website user is authenticated and it is trying to hop that authentication twice?