Additional SQL Server features and topics not covered by specific categories
On the Vscode host, also check if ssh config has ticket forwarding, the ssh server allows forwarding and vscode msal config is set to integrated security.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I have two SQL Server instances, "main" and "linked", deployed on Docker, and both are configured for Active Directory authentication using a local test AD. I want to add "linked" as a linked server on "main", and have "main" delegate the credentials of the current Windows login when running queries against the linked server. However, I can't seem to make it work: whenever I run a linked server query, I always get "Login failed for user 'DOMAIN\serviceaccount-of-main'."
The "linked's" DNS name (linked.test-domain.com) is added to the "main's" /etc/hosts. I then followed KB https://support.microsoft.com/en-US/servicing/SQL/sql-server-2019/cumulative-update/kb4538382-implement-support-for-kerberos-constrained-delegation-in-sql-server-2019-on-linux : /etc/krb5.conf has "forwardable = true" , and delegation is configured in Active Directory itself.
exec sp_addlinkedserver @server = N'linked.test-domain.com', @srvproduct = N'SQL Server'
exec sp_addlinkedsrvlogin @rmtsrvname = N'linked.test-domain.com', @locallogin = NULL, @useself = N'True';
select * from [linked.test-domain.com].master.sys.databases;
This fails:
Msg 18456, Level 14, State 1, Line 44
Login failed for user 'DOMAIN\service-account-of-a'.
Debugging I tried:
07/28/2026 08:46:17.463140201 Debug [security.kerberos.libos] <0000000937/0x00000220> ImpersonateSecurityContext() return value: 0x00000000
07/28/2026 08:46:17.482526645 Debug [security.kerberos.libos] <0000000937/0x00000220> AcquireCredentialsHandle(): EmptyPrincipalName: true, fCredentialUse: 00000002, CurrentImpersonationHandle: 00007FBA8456BDA0, Package: negotiate
07/28/2026 08:46:17.482568698 Debug [security.kerberos.libos] <0000000937/0x00000220> Calling host extension version of AcquireCredentialsHandle().
I'm at my wits end here. I'm using SQL Server 2022, while the original KB is for SQL Server 2019 -- is it possible the constrained delegation support was simply never ported to 2022?
Additional SQL Server features and topics not covered by specific categories
On the Vscode host, also check if ssh config has ticket forwarding, the ssh server allows forwarding and vscode msal config is set to integrated security.