Updated process of configuring AD integrated authentication for SQL Server on Linux
Published Jan 06 2020 10:30 AM 3,713 Views

SQL Server 2017 was the first version of SQL Server made available on Linux platform and we have continued our commitment with SQL Server 2019 as well. Active Directory integrated authentication has been a cornerstone of authorization and security for SQL Server since beginning of the product. AD integrated authentication was also made available for SQL Server 2017 on Linux.


We received the feedback that users found configuration of AD integrated authentication on SQL Server on Linux effort intensive and error prone. Furthermore, there were two separate processes for using Managed Service Account (MSA) and User Principal Name (UPN) accounts which required slightly different options to be configured. There were additional challenges of not being able to automate it as it required manual intervention of password inputs.


We also found that the tool used to configure the keytab entries, ktutil, did not configure the keytab entries with AES encryption cipher with correct salting, causing those entries to always fail AD authentication and fallback to RC4 encryption cipher which is an older and weaker cipher. Overall, it was determined that experience should be much better and smoother than it has been so far.


Taking this feedback in the stride, the team worked diligently along with assistance from our partners in Linux OS community such as Red Hat identity team to build a new process of configuring AD integrated authentication for SQL Sever on Linux. The new process merges different approaches of using MSA and UPN into one. It has also reduced the number of steps required to configure AD authentication. It uses ktpass instead of ktutil to create correctly salted keytab entries, ensuring AES encryption cipher for AD auth works correctly. It also has eliminated the manual inputs from configuration process, opening it up for possibility of automation.


Read about the updated process at following documentation page and let us know if this is helpful. Also please continue to provide feedback so we can learn from it and act to ensure users continue to have a great experience with SQL Server on Linux platform.


Tutorial: Use Active Directory authentication with SQL Server on Linux



Dylan Gray (Senior software engineer)

Mitchell Sternke (Senior software engineer)

Ben Ko  (Senior software engineer)

Mike Habben (Principal software engineering manager)

Tejas Shah (Principal program manager)

Version history
Last update:
‎Jan 06 2020 10:30 AM
Updated by: