IIS7中的SQL Server和Windows身份验证 [英] SQL Server and windows authentication in IIS7

查看:687
本文介绍了IIS7中的SQL Server和Windows身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获得一个ASP.NET网站在Vista上(IIS7)运行,使用SQL Server和Windows身份验证。无论我做什么,当我连接到数据库,我得到异常:

I'm trying to get an ASP.NET website running on Vista (IIS7), using SQL Server and Windows Authentication. No matter what I do, when I connect to the database, I get the exception:


    SqlException was unhandled
    Login failed for user 'MyDomain\MachineName$'.

这似乎并不重要我申请什么设置,我不能让IIS7通过我的Windows登录凭据。

It doesn't seem to matter what settings I apply, I cannot get IIS7 to pass through my Windows login credentials.

额外的细节:


        
  • 无论是SQL Server和我的本地机器上的ActiveDirectory

  •     
  • Vista企业版,IIS7

  •     
  • SQL Server 2005中

  •     
  • 匿名身份验证禁用,启用Windows身份验证

  •     
  • 打开/关闭模拟没什么区别

  •     
  • 所有标识(网络服务,本地系统等),给予同样的结果

  •     
  • 经典和集成管线产生相同的结果

帮助!

推荐答案

模拟/关闭使所有的差异,正确配置。你想要的是caled约束委派什么,你需要配置IIS和AS​​P吧:

Impersonation on/off makes all the difference, when properly configured. What you want is caled 'constrained delegation' and you need to configure IIS and ASP for it:

  • How To: Use Protocol Transition and Constrained Delegation in ASP.NET 2.0
  • Configure ASP.NET Impersonation Authentication (IIS 7)
  • Configuring Servers for Delegation

这篇关于IIS7中的SQL Server和Windows身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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