[thelist] Can't Open UNC Paths from ASP or PHP

Joshua Olson joshua at waetech.com
Wed Feb 5 07:06:03 CST 2003


----- Original Message -----
From: "Ken Schaefer" <ken at adOpenStatic.com>
Sent: Wednesday, February 05, 2003 2:05 AM


> If you are using anonymous IIS access then the default NT accounts:
> IUSR_<machinename> and IWAM_<machinename> (for out-of-process websites)
are
> local accounts, ie they do not have access to remote resources. (this is
not
> the case on Windows Domain Controllers, because they only contain Domain
> accounts - but you probably shouldn't be running a production website on a
> DC).
>
> Options:
> a) disallow anonymous access. Require the user to provide valid NT
> credentials that do have permissions to the remote resource, which will be
> used by IIS to access the remote resource.
>
> b) change the anonymous user account to a domain account, or some other
> account that does have access to the remote resource

There's actually a 3rd option with IIS 5.0.  Create a virtual folder within
the site that points to the network drive.  IIS will prompt you for the
credentials to connect with.  Then, use Server.MapPath("/vfolder/myfolder")
to access the drive.

-joshua




More information about the thelist mailing list