title: Azure Data Studio does not recognize Kerberos Ticket in MacOS Monterey
body: <p>I am attempting to connect to a Microsoft SQL Server database on a corporate network that is limited to Windows Authentication. I have configured Kerberos and Kerberos does successfully issue a ticket and I can verify that the ticket is valid in Ticket Viewer. But when I attempt to connect in Azure Data Studio, and select &quot;Windows Authentication&quot;, I am given the message &quot;Connection Failed due to Kerberos Error&quot;.</p>
  <p>My krb5.conf is located at ~/etc/krb5.conf and I have followed configuration instructions <a href="https://docs.microsoft.com/en-us/sql/azure-data-studio/enable-kerberos?view=sql-server-ver15" rel="nofollow noreferrer">here</a>.</p>
  <p>On a Windows machine connected to the network, when I run <code>setspn -L DATABASENAME</code> I show:</p>
  <pre><code>Registered ServicePrincipalNames for CN=DATABASENAME,OU=Servers,OU=Data Center,DC=companyname,DC=com:
          MSServerClusterMgmtAPI/DATABASENAME
          MSServerClusterMgmtAPI/DATABASENAME.companyname.com
          WSMAN/DATABASENAME
          WSMAN/DATABASENAME.companyname.com
          TERMSRV/DATABASENAME
          TERMSRV/DATABASENAME.companyname.com
          RestrictedKrbHost/DATABASENAME
          HOST/DATABASENAME
          RestrictedKrbHost/DATABASENAME.companyname.com
          HOST/DATABASENAME.companyname.com
  </code></pre>
  <p>When I run <code>nslookup -type=srv _kerberos._tcp.companyname.com</code> I show:</p>
  <pre><code>Server:  UnKnown
  Address:  xx.x.x.163
  Non-authoritative answer:
  _kerberos._tcp.companyname.com SRV service location:
            priority       = 0
            weight         = 100
            port           = 88
            svr hostname   = dcname01.companyname.com
  _kerberos._tcp.companyname.com SRV service location:
            priority       = 0
            weight         = 100
            port           = 88
            svr hostname   = dcname02.companyname.com
  _kerberos._tcp.companyname.com SRV service location:
            priority       = 0
            weight         = 100
            port           = 88
            svr hostname   = dcname03.companyname.com
  _kerberos._tcp.companyname.com SRV service location:
            priority       = 0
            weight         = 100
            port           = 88
            svr hostname   = dcname04.companyname.com
  dcname01.comapnyname.com        internet address = xx.x.x.47
  dcname02.companyname.com        internet address = xx.x.x.8
  dcname03.companyname.com        internet address = xx.xx.x.11
  dcname04.companyname.com        internet address = xx.xx.x.10
  </code></pre>
  <p>The way I have my krb5.conf file configured is:</p>
  <pre><code>[libdefaults]
   default_realm = COMPANYNAME.COM
  
  [realms]
  COMPANYNAME.COM = {
   kdc = dcname01.companyname.com
   kdc = dcname02.companyname.com
   kdc = dcname03.companyname.com
   kdc = dcname04.companyname.com
  }
  </code></pre>
  <p>I have tried many different configurations for krb5.conf involving inclusion and omission of different k/v pairs in different formats but nothing I have tried has worked. I have also attempted to reinstall krb5 via homebrew.</p>
  <p>I am using an Intel Mac on macOS 12.3.1.</p>
  <p>What would be causing Azure Data Studio to not acknowledge my Kerberos Ticket?</p>