使用sspi的Connectionstring [英] Connectionstring using sspi

查看:88
本文介绍了使用sspi的Connectionstring的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人能告诉我你是否可以使用连接字符串中的sspi安全选项

将用户凭据委托给sql server?





编辑:



这可以通过模拟或授权或两者来实现吗

Can anyone tell me if you can use the sspi security option in the connectionstring
to delegate the user credentials to the sql server?




Is this possible by using impersonation or delegation or both

推荐答案

http:// msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectionstring(v=vs.110).aspx [ ^ ]从那篇文章中可以看出,如果指定了用户ID和密码并且Integrated Security设置为true,则将忽略用户ID和密码,并将使用Integrated Security。



所以,不。如果您使用集成安全性,则它将不使用指定的用户名和密码。
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.connectionstring(v=vs.110).aspx[^] From that article it says, "If User ID and Password are specified and Integrated Security is set to true, the User ID and Password will be ignored and Integrated Security will be used."

So, no. If you use integrated security then it will not use the specified user name and password.


这篇关于使用sspi的Connectionstring的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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