Azure SQL Active Directory集成身份验证,联合域

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Azure SQL Active Directory集成身份验证,联合域相关的知识,希望对你有一定的参考价值。

我无法使用Active Directory集成身份验证连接到Azure SQL Server。尝试进行身份验证时,我会收到以下错误消息。

任何有关如何进一步确定此问题的想法将不胜感激。

干杯

无法连接到XXXXXXX.database.windows.net。

===================================

无法在Active Directory中验证用户NT Authority Anonymous Logon(Authentication = ActiveDirectoryIntegrated)。错误代码0xCAA9002C; state 10无法解析XML blob。原因:XML文档必须具有顶级元素。行:0,位置:0文本:( null)(。Net SqlClient数据提供程序)


如需帮助,请单击:http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&EvtSrc=MSSQLServer&EvtID=0&LinkId=20476


服务器名称:XXXXXXX.database.windows.net错误号:0严重性:11状态:0过程:ADALGetAccessToken


课程地点:

   at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData, DbConnectionPool pool, String accessToken, Boolean applyTransientFaultHandling)
   at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.CreateNonPooledConnection(DbConnection owningConnection, DbConnectionPoolGroup poolGroup, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection)
   at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.ProviderBase.DbConnectionClosed.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions)
   at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry)
   at System.Data.SqlClient.SqlConnection.Open()
   at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerService.ValidateConnection(UIConnectionInfo ci, IServerType server)
   at Microsoft.SqlServer.Management.UI.ConnectionDlg.Connector.ConnectionThreadUser()
答案

登录到联合域上的计算机后,我正在使用SSMS进行连接。

尝试连接时,错误将返回到SSMS。

我假设Azure SQL Server可以通过调用Procedure:ADALGetAccessToken来识别用户来自联合域?

谢谢

中号

以上是关于Azure SQL Active Directory集成身份验证,联合域的主要内容,如果未能解决你的问题,请参考以下文章

PowerShell 操作 Azure SQL Active Geo-Replication

PowerShell 操作 Azure SQL Active Geo-Replication 实战

如何使用 Active Directory 集成身份验证通过 python SQL alchemy 连接到 Azure sql 数据库

使用 Active Directory 集成身份验证的 Azure SQL 数据库连接无法打开

在Linux上部署Java应用程序,通过Active Directory连接到Azure SQL Server

Active Director用户GUID