加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 编程开发 > asp.Net > 正文

asp.net – SQL Server集成身份验证模式

发布时间:2020-12-16 07:03:25 所属栏目:asp.Net 来源:网络整理
导读:我想知道何时在Web应用程序的连接字符串中使用 Windows身份验证模式.应用程序本身使用Windows身份验证进行授权.将使用哪个帐户登录SQL Server. 是不是Web应用程序池帐户? 使用Windows身份验证登录Web应用程序的用户帐户? 还有其他账号吗? 应用程序在Win S
我想知道何时在Web应用程序的连接字符串中使用 Windows身份验证模式.应用程序本身使用Windows身份验证进行授权.将使用哪个帐户登录SQL Server.

是不是Web应用程序池帐户?
使用Windows身份验证登录Web应用程序的用户帐户?
还有其他账号吗?

应用程序在Win Ser 2008 64位和IIS 7下运行.应用程序池帐户是网络服务.

解决方法

这取决于您如何配置它.从 http://msdn.microsoft.com/en-us/library/ms998292.aspx和 http://msdn.microsoft.com/en-us/library/bsz5788z.aspx ……

ASP.NET applications do not impersonate by default. As a result,when they use Windows authentication to connect to SQL Server,they use the Web application’s process identity. With this approach,your front-end Web application authenticates and authorizes its users and then uses a trusted identity to access the database. The database trusts the application’s identity and trusts the application to properly authenticate and authorize callers. This approach is referred to as the trusted subsystem model.

The alternative model referred to as the impersonation/delegation model uses the original caller’s Windows identity to access the database. This approach requires that your ASP.NET application is configured to use impersonation. See the section “Impersonation / Delegation vs. Trusted Subsystem” in this document.

因此,根据您的配置方式,它可以使用应用程序池帐户(不使用模拟时)或使用Web应用程序的登录用户帐户(使用模拟时).

有关假冒信息,请参阅http://msdn.microsoft.com/en-us/library/134ec8tc.aspx.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读