简体   繁体   中英

Connect to Azure database with DataGrip - Active Directory

I am trying to connect to Azure database via DataGrip using Active Directory connection (Note: not Active directory - password) I followed accepted answer from this I set integratedSecurity=false and authentication=ActiveDirectoryIntegrated . When trying to connect to Test Connection I get error message Connection to Azure SQL Database failed. Cannot set "Authetication" with "IntegratedSecurity" set to "true" Connection to Azure SQL Database failed. Cannot set "Authetication" with "IntegratedSecurity" set to "true" . Is it some kind of bug that can be repaired, if so how could I solve this issue?

Edit: More information: On Azure Portal I can see that this is SQL database . Server name ends with database.windows.net .

When I try to connect via Connection String (in Data Grip Add data from URL ) generated by Azure I am not able to connect also.

The DataGrip support us using Azure Active Directory Authentication. Please see: Microsoft Azure .

You can get the connect string (URL) with Active Directory integrated authentication from Portal: 在此处输入图片说明

Replace the URL with the Connect string(Active Directory integrated authentication):

在此处输入图片说明

Hope this helps.

There is a lot of confusion around terminology here.

In short, the connection string attribute Integrated Security=true indicates you want to use "windows authentication". This type of authentication might be supported by any Azure SQL (anything whose hostname ends in database.windows.net ). Azure SQL only supports Azure Active Directory authentication, butit might be possible to implement single sign on between a windows domain account and Azure Active Directory.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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