Web-server – Security configuration in IIS8 does not allow for folders to be created on network shares with ClassicASP

configurationiis-7.5iis-8web-server

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:

  1. Old Server was IIS6 on Windows Server 2003. Works fine
  2. 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:

  1. 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?

Best Answer

Sounds like the double hop issue. What do you see in the event log? In IIS 6, the network service is the default app pool account. Did you try setting the app pool as network service, classic mode? Is UAC (user account account) enabled?