ASP.NET域身份验证使用本地解决方法

时间:2018-01-23 21:16:32

标签: c# asp.net asp.net-mvc windows-authentication

我正在使用Windows身份验证的ASP.NET MVC应用程序。

 <authentication mode="Windows">
    <forms loginUrl="~/Users/Account/AccessDenied" timeout="2880" />
  </authentication>
  <roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider" />
  <authorization>
    <allow roles="DomainName\Domain Users" />
    <deny users="?" />
  </authorization>

当前配置需要在域内的PC上工作&#34; DomainName&#34;能够调试应用程序。幕后运行一些特殊的用户管理。 我无法在域内的PC上工作 - 相反,我希望使用本地用户帐户在我的PC上本地工作。我还在此域上拥有域帐户以访问特定资源。

现在我的问题是:有没有办法模仿域帐户在我的机器上使用本地用户帐户使用IISExpress中的调试器?

我已经尝试过&#34; runas&#34;但没有成功。

0 个答案:

没有答案