简体   繁体   English

如何在链接到SQL Server的Microsoft Access中使用Active Directory登录?

[英]How can I use an Active Directory login in Microsoft Access linked to SQL Server?

We have a client who uses MS Access to manipulate data in their SQL Server DB. 我们有一个客户端使用MS Access来操作SQL Server数据库中的数据。 I know that we can set up SQL Server to authenticate using Active Directory. 我知道我们可以设置SQL Server以使用Active Directory进行身份验证。 If we set this up, can they use their AD logins to connect to SQL Server through Access? 如果我们设置它,他们可以使用他们的AD登录通过Access连接到SQL Server吗? How? 怎么样?

I tried Googling this, but to no avail. 我试过谷歌搜索,但无济于事。 Any links or direction would be much appreciated. 任何链接或方向将非常感激。 Thank you. 谢谢。

Also, please direct me to the correct place, if I should ask this question elsewhere. 另外,如果我在别处问这个问题,请指导我到正确的地方。

Yes this should be pretty straight forward. 是的,这应该是非常直截了当的。 You can use Windows Authentication to connect to sql server. 您可以使用Windows Authentication连接到SQL Server。

When establishing ODBC connection from your Client, The Wizard for connection configuration to SQL Server takes you to a page which gives you options to choose how you want to connect to SQL SERVER. 从客户端建立ODBC连接时,连接到SQL Server的连接向导会将您带到一个页面,该页面为您提供了选择连接SQL SERVER的方式的选项。 There you can choose to use Windows Authentication or SQL Server Authentication. 在那里,您可以选择使用Windows身份验证或SQL Server身份验证。 You can choose the Windows Authentication Option. 您可以选择Windows身份验证选项。

Now when a client tries to connect to the SQL Server their windows credentials will be used to authenticate the user. 现在,当客户端尝试连接到SQL Server时,他们的Windows凭据将用于验证用户身份。 And obviously if they are on a network their AD Account will Authenticate them. 显然,如果他们在网络上,他们的AD帐户将对他们进行身份验证。

See below a snapshot from ODBC Data Source Administrator wizard when configuring connection to sql server. 配置与sql server的连接时,请参阅下面的ODBC Data Source Administrator向导中的快照。

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM