Solved

Set up IIS virtual directory to UNC

Posted on 2009-04-02
6
854 Views
Last Modified: 2012-05-06
I need to setup a IIS virtual directory on an XP machine to access a UNC path on a Windows 2003 file server.  I must use a domain account and all computers are in a trusted domain.  How do I accomplish this goal?  This is just for dev right now.  If more information is required please let me know.
0
Comment
Question by:Nyah247
  • 4
  • 2
6 Comments
 
LVL 6

Author Comment

by:Nyah247
ID: 24053655
...or using .net is there a way to connect to a unc without a virtual directory?
0
 
LVL 37

Accepted Solution

by:
meverest earned 500 total points
ID: 24055010
IIS can map a virtual directory to a remote share, but many people have trouble setting this up.  Here is a resource that is often useful to get past it:

http://support.microsoft.com/kb/269009/en-us

>> or using .net is there a way to connect to a unc without a virtual directory?

I suppose you could create a kind of proxy using .net to retrieve remote files from the web server application and deliver through the web server, but would be a bit of overkill for what I think you want.
0
 
LVL 6

Author Comment

by:Nyah247
ID: 24055366
Basically a developer is working on an in-house content management system.  Through .net the application will access a file share and publish staged files to the web server after they are approved.  To me it seems this should be done through a virtual directory but this does not have to be the case.  

Anyway, I found this article which is very similar to what the MS one explains with a little more detail and some pictures to help with the visuals.   http://www.codeproject.com/KB/aspnet/UNC__Access_Network_file.aspx  I cannot use local accounts and having a domain password in plain text in the .net for impersonation really bothers me.

I guess, what is the best way to achieve my goal?  The virtual directory or another method?  If it is the virtual directory how can I suggest the developer protect the user credentials from being plain text.


0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 37

Expert Comment

by:meverest
ID: 24066616
Hi,

I think that what you are describing is probably something different than the usual purpose of mapping IIS virtual directories.

I suspect that you would probably want to use the application framework itself (rather than IIS) to access the remote unc location/s.

To secure clear text passwords, use SSL on the web site.

Cheers.

0
 
LVL 6

Author Comment

by:Nyah247
ID: 24171222
We found a way around this...without the virtual directories.  The primary problem was the developer computer and this could be setup as you described with a virtual directory and local accounts.  But that is against our security policy.  We resolved this through using a limited service account (domain user) and using .net impersonation and an encrypted .config user/password.  It seems to be working ok thus far.
0
 
LVL 6

Author Closing Comment

by:Nyah247
ID: 31565943
Self-resolved but the proposed solution did help further research.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question