2014-08-28 33 views

回答

0

在你的web.config,你需要以下條件:

<authentication mode="Windows"/> 

然後在IIS中,您配置的應用程序池,以在集成模式下運行。

然後在你的代碼調用的FtpWebRequest,您可以使用安全pricipal - e.g:

string userName = System.Security.Principal.WindowsIdentity.GetCurrent().Name; 
相關問題