ASP.NET MVC模拟将上载的文件写入网络共享(IIS 7) [英] ASP.NET MVC Impersonation to write uploaded file to Network Share (IIS 7)

查看:133
本文介绍了ASP.NET MVC模拟将上载的文件写入网络共享(IIS 7)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ASP.NET MVC应用程序在可将上载的文件写入网络共享(在同一域中)的一段代码中进行模拟的最安全(最简单的方法)是什么?我试图避免与作为操作系统的一部分"类型的priveleges有关.

我确实有一个网络共享,并且拥有一个对该共享拥有完全权利的AD网络服务帐户..但是仍然缺少一个至关重要的部分来实现所有工作.

What is the safest (and easiest way) for an ASP.NET MVC application to do impersonation in a section of code where an uploaded file can be written to a network share (in the same domain)? I am trying to avoid anything to do with "act as part of the operating system" type priveleges.

I do have a network share, and an AD network service account that has full rights to the share .. but am still missing one vital piece as to getting this to all work.

推荐答案

我在 http://stackoverflow.com/questions/1909114/impersonation- asp-net-mvc-controller-action-vs-web-forms

http://stackoverflow.com/questions/1405612/impersonation-in-asp-net-mvc

发现它对您的目的有所帮助.


HTH
I have come across few links regarding Impersonation in Asp.NET MVC while googling.

http://stackoverflow.com/questions/1909114/impersonation-asp-net-mvc-controller-action-vs-web-forms

http://stackoverflow.com/questions/1405612/impersonation-in-asp-net-mvc

Find it helpful for your purpose.


HTH


这篇关于ASP.NET MVC模拟将上载的文件写入网络共享(IIS 7)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆