新的 SQL Server 安装混合模式身份验证不允许 Windows 身份验证
我有一个 SQL Server 2008 RS 标准版的新实例。我启用了混合模式身份验证,但无法让 Windows 身份验证正常工作。我收到错误:18456,用户“MyDomain\jreddy”登录失败。我可以使用 sa 帐户登录,以便进行更改,但我不确定要更改什么。任何帮助将不胜感激。
我已检查事件日志,发现此错误与登录失败相关:
原因:基于令牌的服务器访问验证因基础结构错误而失败。
I have a new instance of SQL Server 2008 RS Standard Edition. I enabled Mixed-Mode Authentication but I can't get Windows Authentication to work. I get the Error: 18456, Login Failed for user 'MyDomain\jreddy'. I can log in with the sa account so I can make changes, but I'm not sure what to change. Any help would be greatly appreciated.
I've checked the event log and found this error relating to the login failure:
Reason: Token-based server access validation failed with an infrastructure error.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
当您为 Sql Server 启用 Windows 身份验证时,它不仅会自动解析 Active Directory 的身份验证请求。您仍然需要为每个用户设置一个帐户,并为该帐户分配单个数据库的 Sql Server 权限(通常通过角色完成)。好消息是,您通常可以一次对整个 Active Directory 组执行此操作 - 例如,异常宽松的数据库可能允许整个
MyDomain\Users
登录并使用特定数据库。When you enable Windows Authentication for Sql Server, it won't just automatically resolve authentication requests with Active Directory. You still have to set up an account for each user, and assign Sql Server permissions to that account for individual databases (often done via roles). The good news is that you can often do this for an entire Active Directory group at a time — for example, an unusually permissive database might allow the entire
MyDomain\Users
to log in and use a specific database.显然问题出在 Windows 2008 服务器上的 UAC。我们的网络人员正在更改一些组策略并为所有服务器打开 UAC。因此,这与切换 SQL Server 版本(Ent --> Standard)无关。关闭 UAC 解决了我遇到的问题。
Apparently the problem was with UAC on the Windows 2008 server. Our network guys were changing some group policies and turned UAC on for all our servers. So, this had nothing to do with switching edition of SQL Server (Ent --> Standard). Turning off UAC fixed the issue I was having.