如何添加的Active Directory用户组在SQL Server登录 [英] How to add Active Directory user group as login in SQL Server

查看:574
本文介绍了如何添加的Active Directory用户组在SQL Server登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是连接到使用Windows身份验证的SQL Server .NET应用程序。

I have a .net application which is connecting to the SQL Server using windows authentication.

我们不能在应用程序中使用SQL Server身份验证。我们有很多的Active Directory用户没有为我们的项目中。因此,我们必须在SQL Server的每个Active Directory用户创建单独的登录帐户而不是为每个AD用户创建单独的登录帐户,是有什么办法可以使用​​Active Directory用户组中的SQL Server?

We cannot use SQL Server authentication in the application. We have lot of Active Directory users there for our project. So we have to create separate login account for each Active Directory users in SQL Server rather than creating separate login account for each AD users, is there any way to use the active directory user group in SQL Server?

推荐答案

在SQL Server Management Studio中,转到对象资源管理器> (服务器)GT;安全>登录,然后右键单击新建登录

In SQL Server Management Studio, go to Object Explorer > (your server) > Security > Logins and right-click New Login:

然后在弹出的对话框中,选择你想要看到的对象类型(默认情况下禁用 - 检查),并挑位置,你想看看你的对象(例如使用整个目录),然后找到你的AD组。

Then in the dialog box that pops up, pick the types of objects you want to see (Groups is disabled by default - check it!) and pick the location where you want to look for your objects (e.g. use Entire Directory) and then find your AD group.

您现在有一个常规的SQL Server登录名 - 当您创建一个单一的AD用户只喜欢。给新的登录上它所需要的数据库的权限,和您去!

You now have a regular SQL Server Login - just like when you create one for a single AD user. Give that new login the permissions on the databases it needs, and off you go!

这是AD组的任何成员现在可以登录到SQL Server,并使用你的数据库。

Any member of that AD group can now login to SQL Server and use your database.

这篇关于如何添加的Active Directory用户组在SQL Server登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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