Windows集成认证全过程

开发环境:win7旗舰版,vs2013

服务器环境:windows server 2008 R2 IIS7.5

目的:在局域网搭建一个网站,用户必须使用域帐号登录网站访问

Step 1:

创建project ,选择MVC,修改Authentication为WindowsAuthentication

Step2:

修改项目属性,Annymous Authentication为Disabled,WindowsAuthentication 为Enabled

Step3:

修改Web.config,

<system.webServer>
<modules runAllManagedModulesForAllRequests="true">
</modules>
</system.webServer>

Step4:

IIS 设置:关闭匿名认证和其他认证方式,开启windows集成认证

完成

原文地址:https://www.cnblogs.com/LLLLoveLLLLife/p/4836068.html