Skip to content

Unable to connect from DBeaver on Mac to SQL Server that uses Active Directory authentication #13386

Answered by jnahmias
artgoldberg asked this question in Q&A
Discussion options

You must be logged in to vote

What I did is to set up the Kerberos configuration in /etc/krb5.conf on the Mac for the AD realm(s) aka domain(s). Then, it's just a matter of setting the properties correctly:

databaseName=master
authenticationScheme=JavaKerberos
encrypt=true
integratedSecurity=true
serverName=mssqlserver.example.org
trustStoreType=KeychainStore
userName=me@EXAMPLE.ORG
password=REDACTED

Another alternative, if you want true SSO, is to run kinit me@EXAMPLE.ORG first. Then you can leave off the userName and password properties.

Replies: 14 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by artgoldberg
Comment options

You must be logged in to vote
1 reply
@artgoldberg
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@LonwoLonwo
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
7 participants
Converted from issue

This discussion was converted from issue #13313 on August 01, 2021 13:52.