Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have a Windows Server 2008 domain controller that shares out a particular file folder on the network. I have developed an ASP.NET app that allows outside clients (via the Internet) to browse this folder and download documents (based on permissions handled by the app). In order to bolster security, the web server on which the ASP.NET app runs (and hence is port-forwardable behind the firewall) is outside the domain. My problem is how to access the domain-based share via my ASP.NET application. The account under which my ASP.NET app runs is obviously local to the web server (again, outside the domain). I need to programmatically access the share at runtime. I can't just impersonate a domain account for the entire app because the web server doesn't know anything about that account. Any ideas on what I should do?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900