简体   繁体   English

如何在没有Windows身份验证的情况下使用Active Directory用户在SQL SERVER 2008中进行身份验证

[英]How i can authenticate in SQL SERVER 2008 with Active Directory User but without Windows Authentication

after reviewing a lot on the internet, I can not find a solution. 经过互联网上的大量审查后,我找不到解决方案。 I hope you understand me, my English is not the best ... 希望你能理解我,我的英语不是最好的...

Issue: 问题:

I want to authenticate against SQL Server with a valid user for the domain (active directory) which I get it from the login (username and password) of my application (old application). 我想使用域(活动目录)的有效用户对SQL Server进行身份验证,该用户是从我的应用程序(旧应用程序)的登录名(用户名和密码)获得的。 This user, which is logged into my application, is a user validated by Active Directory (LDAP) and is a member of a Group that has logging permissions on the SQL Server ("Domain \\ Group_name"). 登录到我的应用程序中的该用户是通过Active Directory(LDAP)验证的用户,并且是对SQL Server具有日志记录权限的组(“域\\ Group_name”)的成员。

Attempts: 尝试:

So the problem is that if I use windows authentication (it works fine) I would be using the windows user and not the application user (it is not always the same user). 所以问题是,如果我使用Windows身份验证(工作正常),我将使用Windows用户而不是应用程序用户(它并不总是同一用户)。 On the other hand, if I use SQL Server authentication I have to create and maintain the passwords of these users separately from the domain ... 另一方面,如果我使用SQL Server身份验证,则必须与域分开创建和维护这些用户的密码。

Question: 题:

How do I authenticate to SQL Server with a user logged in to my application. 如何使用登录到我的应用程序的用户向SQL Server进行身份验证。 User who is a member of a Domain Group, which has logging permission in SQL Server but is not always the user windows logued on? 是域组成员的用户,该域组在SQL Server中具有日志记录权限,但是否总是登录用户窗口?

EXAMPLE: 例:

Users: usr1 and usr2 both valid domain users 用户: usr1usr2都是有效的域用户

Usr1 is a member of the group that has access to SQL Server. Usr1是有权访问SQL Server的组的成员。

Usr2 is NOT a member of the SQL Server access group (can not log in). Usr2 不是 SQL Server访问组的成员(无法登录)。

I want to log in Windows with usr2 and in the application with usr1 . 我想使用usr2登录Windows,使用usr1登录应用程序 Both with domain credentials. 两者都具有域凭据。

Thanks in advance. 提前致谢。

The only solution than i can find was the " runas ", like SqlZim saw. 我无法找到的唯一解决方案是“ runas ”,就像SqlZim看到的那样。

Thanks. 谢谢。

暂无
暂无

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

相关问题 如何设置 GCP Cloud SQL 实例以信任 Active Directory 域以进行 Windows 身份验证? - How can I set up a GCP Cloud SQL instance to trust an Active Directory Domain for Windows authentication? 从SQL Server 2008更新Active Directory邮件用户属性 - Update Active Directory mail user attribute from SQL server 2008 如果用户通过 Active Directory 身份验证,如何将 ODBC 连接字符串发送到 SQL 服务器? - How can I send an ODBC connection string to an SQL server if the user is authenticated by Active Directory? 如何查询与SQL Server用户关联的Active Directory帐户? - How can I query an which Active Directory account is associated with a SQL Server user? 登录到Active Directory组的SQL Server Windows身份验证的问题 - Issue with logins to SQL Server Windows Authentication to Active Directory Groups 检查Windows身份验证用户在sql server 2008中是否具有正确的特权? - Check if Windows Authentication user has correct privilege in sql server 2008? 如何将当前的IIS / Active Directory用户输入SQL? - How can I entrer the current IIS/Active Directory user into SQL? 如何在SQL Server 2008中授予用户有限的权限? - How can I grant a user limited permissions in SQL Server 2008? 在 Linux 容器上使用 SQL Server 进行 Active Directory 身份验证 - Active Directory authentication with SQL Server on Linux containers 使用Toad for SQL Server进行Active Directory密码身份验证 - Active Directory Password Authentication with Toad for SQL Server
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM