---
title: Trusted for Delegation – Kerberos, Linked Servers, and Secure Nodinite Integration
description: "Learn how to configure 'Trusted for delegation' for secure Kerberos authentication in distributed Nodinite environments. Step-by-step guidance for SQL Server, SPN, and Windows Server settings."
---

# Trusted for delegation

Enable secure, multi-tier authentication for your distributed <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> environment by configuring 'Trusted for delegation' in [Windows Server][Windows Overview] and SQL Server. This guide explains why delegation is essential, how to set it up, and how to avoid common pitfalls in Kerberos authentication.

✅ Ensure secure Kerberos authentication for distributed SQL Server and BizTalk scenarios  
✅ Step-by-step guidance for configuring delegation, SPNs, and service accounts  
✅ Troubleshoot and resolve double-hop and linked server issues  

>Enable Kerberos for [Microsoft SQL Server][] instances that make a jump using a [Linked Server][Linked Servers].  

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p><a href="https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/">Monitoring Agents</a> don't need delegation. In Windows mode the <a href="https://docs.nodinite.com/core-services/web-api/overview/">Web API</a> calls an agent as the signed-in user, but agents accept anonymous calls and check only the <code>X-ApiKey</code> header, so no credentials are passed on.</p></div>
</aside>

**Trusted for delegation** is a Windows Server policy setting. <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> and other multi-tier applications use delegation of authentication to securely pass user credentials across multiple servers. To use Kerberos, both client and server must run under accounts trusted for delegation.

Delegation allows users to connect to multiple servers, retaining the original authentication credentials throughout the chain. Only administrators with the "Enable computer and user accounts to be trusted for delegation" right (typically Domain or Enterprise Admins) can configure this setting. The procedure depends on your domain's functional level.

![Anonymous][3]  
*A common error when 'trusted for delegation' is not properly configured.*

<div class="mermaid">
flowchart TB
    START["fa:fa-play Service connects with Kerberos"]
    START -->|"Missing SPNs"| NoSPN["fa:fa-xmark No SPN registered"]
    START -->|"SPNs registered"| SPNRegistered["fa:fa-key SPNs registered"]
    NoSPN -->|"Authentication attempt"| AuthFails["fa:fa-xmark Kerberos fails"]
    AuthFails -->|"NTLM enabled"| NTLMFallback["fa:fa-triangle-exclamation NTLM fallback<br/>security compliance gap"]
    AuthFails -->|"NTLM disabled"| CompleteFailure["fa:fa-xmark Application fails"]
    SPNRegistered -->|"No delegation configured"| NoDelegation["fa:fa-triangle-exclamation Single hop works"]
    SPNRegistered -->|"Delegation configured"| KerberosSuccess["fa:fa-check Multi-hop Kerberos works"]
    NoDelegation -->|"Multi-hop authentication"| AnonymousLogin["fa:fa-xmark NT AUTHORITY ANONYMOUS LOGON"]
    style NoSPN fill:#c33d34,color:#fff
    style AuthFails fill:#c33d34,color:#fff
    style CompleteFailure fill:#c33d34,color:#fff
    style AnonymousLogin fill:#c33d34,color:#fff
    style NTLMFallback fill:#FFD525
    style NoDelegation fill:#FFD525
    style SPNRegistered fill:#2678BD,color:#fff
    style KerberosSuccess fill:#93d16d
</div>

*Diagram: Kerberos authentication paths from missing [SPNs][SPN] (red: failure) through partial configuration (yellow: NTLM fallback or single hop only) to multi-hop authentication through a [Linked Server][Linked Servers] (green). Without delegation, multi-hop scenarios fail with the anonymous logon error.*  

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>Settings on this page often require a reboot. Plan changes for a maintenance window.</p></div>
</aside>

1. Before proceeding, read '[Understanding Kerberos Double Hop](https://learn.microsoft.com/en-us/archive/blogs/askds/understanding-kerberos-double-hop)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>'<i class="fal fa-link" aria-hidden="true"></i> and '[How to configure the server to be trusted for delegation](https://learn.microsoft.com/en-us/previous-versions/windows/microsoft-desktop-optimization-pack/appv-v4/how-to-configure-the-server-to-be-trusted-for-delegation)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>'<i class="fal fa-link" aria-hidden="true"></i> for foundational knowledge.
2. Review our recommendations [about using SQL Server][Microsoft SQL Server] with <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span>.

Kerberos is required if you use **multiple** SQL Server instances for <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> and/or a remote BizTalk Server for [Logging][]. When logging from BizTalk is enabled, the [Logging Service][] may span multiple [Log Databases][], including BizTalk databases, through the [Configuration Database][]. The [Logging Service][] account must authenticate with SQL Server using Kerberos. See the [Log Database prerequisites][] and the [Logging Service Kerberos configuration][Logging Service Kerberos] guides.

<div class="mermaid">
graph LR
  subgraph "Nodinite"
    rols(fa:fa-hard-drive Logging Service)
  end
    subgraph "Nodinite SQL Server "
      rols --> roCPL(fa:fa-database Config Database)
    end
    subgraph "BizTalk SQL Server "
      roCPL --> | Linked Server | roBT(fa:fa-database BizTalkMgmtDb)  
      roCPL --> | Linked Server | roBT2(fa:fa-database BizTalkDTADb)  
    end
    subgraph "Nodinite SQL Server Archive"
      roCPL -.-> | Linked Server | roLog(fa:fa-database Nodinite Log Archive Database)
    end
    style rols fill:#2678BD,color:#fff
    style roCPL fill:#93d16d
    style roBT fill:#2678BD,color:#fff
    style roBT2 fill:#2678BD,color:#fff
    style roLog fill:#FFD525
</div>

*Diagram: the [Logging Service][] (blue) connects to the [Configuration Database][] (green), which reaches the BizTalk databases and an archive [Log Database][Log Databases] (yellow, optional) through [Linked Servers][]. Kerberos is required for every jump between SQL Server instances.*

Kerberos requires the following Windows features to be properly configured:

|Windows Feature/Setting|Comment|  
|---|---|  
|Trusted for delegation on the Service level|All SQL Server instances with a [linked server][Linked Servers] that jumps to another remote SQL Server|  
|Account for SQL Server instance(s)|For distributed Kerberos, linked servers, and double-hop scenarios, run SQL Server as a Windows Active Directory account (or gMSA). Built-in accounts such as `NT SERVICE\MSSQLSERVER`, `LocalSystem`, and `NetworkService` are not suitable for constrained delegation|  
|[SPN][]|All SQL Server node, cluster, and listener names must be configured. See the comprehensive [Service Principal Names (SPN)][SPN] guide for registration commands, validation, and troubleshooting. Verify with the [Microsoft Kerberos Configuration Manager tool](https://www.microsoft.com/en-us/download/details.aspx?id=39046)<sup><i class="fal fa-arrow-up-right-from-square" aria-hidden="true"></i></sup>|  
|Firewall(s)|RPC, [MSDTC][Transactions MSDTC], Kerberos, DNS, and SQL Server traffic must be allowed; the port tables live in [SQL Server Firewall Configuration][FW SQL to SQL] (SQL Server to SQL Server) and [Domain Controller ports][FW DC]|  
|Authentication and Authorization|The [Logging Service][] account must have proper access rights on target databases|  

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>The domain functional level must be 2003 or later.</p></div>
</aside>
<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>The account must NOT have 'Account is sensitive and cannot be delegated' checked.</p></div>
</aside>
<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>If SQL Server currently runs with a built-in identity such as <code>NT SERVICE\MSSQLSERVER</code> (default install), first migrate the SQL service to a dedicated domain account or gMSA. Then register SPNs and configure delegation.</p></div>
</aside>

## Logon Server

Make changes on the **Active Directory server** that handles the login process. Find the **Logon Server** by typing **Set** at the command prompt:  
![Command prompt output of Set showing the LOGONSERVER variable][2]  
*Example of the `LOGONSERVER` value that names the domain controller to change.*  

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>If you change settings on another AD server, wait or force replication.</p></div>
</aside>

Run the following command to update your server's configuration (or allow time for replication):

```powershell
gpupdate /force
```

<aside aria-label="Tip" class="nodinite-note nodinite-note--tip">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-lightbulb"></i> Tip</p>
<div class="nodinite-note__content"><p>Use the <a href="https://www.microsoft.com/en-us/download/details.aspx?id=39046">Microsoft Kerberos Configuration Manager tool</a> to validate <a href="https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/spn-for-sql-server/">SPNs</a> and ensure proper delegation settings. See the comprehensive <a href="https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/spn-for-sql-server/">Service Principal Names (SPN)</a> guide for registration commands, examples, and troubleshooting.</p></div>
</aside>

Connect locally to the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> SQL Server instance (no connection details needed):

```cmd
C:\Program Files\Microsoft\Kerberos Configuration Manager for SQL Server\
```

*Default install path for the Microsoft Kerberos Configuration Manager tool.*

If issues are detected, the tool provides PowerShell scripts for a Domain Admin to resolve problems.

### SPN

<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> SQL Servers making the hop should all be listed in the SPN tab, with status OK.  
![Kerberos Configuration Manager SPN tab with status OK][5]  
*Example of the SPN tab in the Kerberos Configuration Manager tool.*  

### Delegation

In the **Delegation** tab, no issues should be reported.  
![Kerberos Configuration Manager Delegation tab without issues][8]  
*Example of the Delegation tab when delegation is configured correctly.*  

You can enable **Trusted for delegation** in two ways:

1. [Service level](#service-level) (Constrained delegation – **recommended**)
2. [Server level](#server-level) (General delegation)

### 1. Service level

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Settings apply to the <strong>User</strong> object.</p></div>
</aside>

In Active Directory, enable the option to grant the **SQL Server account** used for the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> SQL Server instance the right to be 'Trusted for delegation' to selected **target** services. The SQL Server must run with an **Active Directory** service account (not a local/computer account).

If SQL Server is running with a built-in account (for example `NT SERVICE\MSSQLSERVER`), you cannot correctly model constrained delegation for the required cross-server hop chain. Move to a domain account or gMSA first.

|Account|Comment|  
|---|---|  
|<span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> SQL Server||  

![Add Services][6]  
*For this SQL Server service account, select all relevant target node, cluster, and listener names.*

Select the **service account** (an AD domain account) for the SQL Server instance to be trusted for delegation.

<aside aria-label="Important" class="nodinite-note nodinite-note--important">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-message-exclamation"></i> Important</p>
<div class="nodinite-note__content"><p>Do <strong>NOT</strong> select the computer account.</p></div>
</aside>

![Service Level Delegation][7]  
*Example: SQL Account with 'trusted for delegation' set on the Service Level for selected targets.*

><i class="fal fa-repeat" aria-hidden="true"></i> Repeat for each **target** SQL Server instance as needed:
>
>* SQL node name(s) (stand-alone and for any combination)  
>* Cluster name(s) (Failover cluster)  
>* Listener name(s) (Always On)  

<div class="mermaid">
graph LR
    subgraph "Nodinite SQL Server "
      roCPL(fa:fa-user-cog Nodinite SQL instance Account)
    end
    subgraph "BizTalk SQL Server "
      roCPL --> | Linked Server | roBT(fa:fa-database BizTalkMgmtDb instance Service Account)  
    end
    subgraph "BizTalk SQL Server"
      roCPL --> | Linked Server | roBT2(fa:fa-database BizTalkDTADb instance Service Account)  
    end
    subgraph "Nodinite SQL Server Archive"
      roCPL -.-> | Linked Server | roLog(fa:fa-database Nodinite Log Archive instance Service Account)
    end
    style roCPL fill:#93d16d
    style roBT fill:#2678BD,color:#fff
    style roBT2 fill:#2678BD,color:#fff
    style roLog fill:#FFD525
</div>

*Diagram: the service account of the <span class="nodinite-product-name" title="The node that unites different systems. Or as we call it Nodinite">Nodinite</span> SQL Server instance (green) is trusted for delegation to the service accounts of each target instance (blue), and of an optional archive [Log Database][Log Databases] instance (yellow), that it reaches through [Linked Servers][].*

### 2. Server level

<aside aria-label="Note" class="nodinite-note nodinite-note--note">
<p class="nodinite-note__label" aria-hidden="true"><i class="far fa-fw fa-note"></i> Note</p>
<div class="nodinite-note__content"><p>Settings apply to the <strong>Server</strong> object.</p></div>
</aside>

Set the "Trusted for delegation" option in Active Directory at the server level (listener, cluster, or node name).

><i class="fal fa-repeat" aria-hidden="true"></i> Repeat as needed:
>
>* SQL node name(s) (stand-alone and for any combination)  
>* Cluster name(s) (Failover cluster)  
>* Listener name(s) (Always On)  

![Server Level][4]  
*Delegation on Server Level*

## Kerberos ticket

The following diagram explains how the [Logging Service][] process obtains a Kerberos Ticket-Granting Ticket (TGT) for the SQL Server instance for BizTalk Server:  

<div class="mermaid">
sequenceDiagram
  opt Kerberos TGT
    Logging Service ->> Domain Controller: Service account credentials
    Domain Controller ->> Logging Service: Kerberos TGT
  end
  opt Service ticket
    Logging Service ->> Domain Controller: Send TGT to request a service ticket
    Domain Controller ->> Logging Service: service ticket
  end
  Logging Service ->>  SQL (Configuration Database): Client TGT and service ticket
  opt SQL service ticket
    SQL (Configuration Database) ->> Domain Controller: Clients TGT to request a service ticket
    Domain Controller ->> SQL (Configuration Database): service ticket
  end
  SQL (Configuration Database) ->> BizTalk SQL (BizTalkMgmtDb): Client TGT and SQL service ticket
  BizTalk SQL (BizTalkMgmtDb) ->> SQL (Configuration Database): Response
  SQL (Configuration Database) ->> Logging Service: Response
</div>

*Sequence: the [Logging Service][] authenticates and traverses SQL Server instances, from the [Configuration Database][] to the BizTalk databases, using Kerberos tickets.*

## <i class="fal fa-hand-point-right" aria-hidden="true"></i> Next Steps

* <i class="fal fa-database" aria-hidden="true"></i> [Configure Linked Servers][Linked Servers]  
* <i class="fal fa-key" aria-hidden="true"></i> [Service Principal Names (SPN)][SPN]  

## <i class="fal fa-link-horizontal" aria-hidden="true"></i> Related Topics

* <i class="fal fa-user-shield" aria-hidden="true"></i> [Logon as a Service right][]  
* <i class="fal fa-server" aria-hidden="true"></i> [Microsoft SQL Server Options][Microsoft SQL Server]  
* <i class="fal fa-database" aria-hidden="true"></i> [Log Databases][]  
* <i class="fal fa-cog" aria-hidden="true"></i> [Logging Service][]  
* <i class="fal fa-gauge-high" aria-hidden="true"></i> [PAC Verification][PACVerification]  
* <i class="fal fa-shuffle" aria-hidden="true"></i> [Transactions MSDTC][]  
* <i class="fal fa-arrow-turn-up" aria-hidden="true"></i> [Windows Server Troubleshooting][Windows Overview]  

[2]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/IMUpdate/Troubleshooting/LogonServer.png
[3]:https://docs.nodinite.com/media/Documentation%20Pictures/LogAgent/BizTalk/AnonymousLogonFailure.png
[4]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/IMUpdate/Troubleshooting/TrustedForDelegation_General.png
[5]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/IMUpdate/Troubleshooting/Kerberos_SPN.png
[6]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/IMUpdate/Troubleshooting/TrustedForDelegation_AddServices.png
[7]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/IMUpdate/Troubleshooting/TrustedForDelegation_ServiceLevel.png
[8]:https://docs.nodinite.com/media/Documentation%20Pictures/IM/IMUpdate/Troubleshooting/TrustedForDelegation_NoIssues.png

[Configuration Database]:https://docs.nodinite.com/core-services/configuration-database/overview/
[FW DC]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/firewall/#domain-controller
[FW SQL to SQL]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/firewall/#sql-server-to-sql-server
[Linked Servers]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/linked-servers/
[Log Database prerequisites]:https://docs.nodinite.com/core-services/log-databases/getting-started/prerequisites/
[Log Databases]:https://docs.nodinite.com/core-services/log-databases/overview/
[Logging]:https://docs.nodinite.com/logging/
[Logging Service]:https://docs.nodinite.com/core-services/logging-service/overview/
[Logging Service Kerberos]:https://docs.nodinite.com/core-services/logging-service/getting-started/prerequisites/#kerberos-configuration
[Logon as a Service right]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/logon-as-a-service-right/
[Microsoft Kerberos Configuration Manager tool]:https://www.microsoft.com/en-us/download/details.aspx?id=39046
[Microsoft SQL Server]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/sql-server-options/
[Monitoring Agents]:https://docs.nodinite.com/administration/monitor-management/monitor-agents/features/what-is-a-monitor-agent/
[PACVerification]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/pacverification/
[SPN]:https://docs.nodinite.com/install-and-update/troubleshooting/sql-server/spn-for-sql-server/
[Transactions MSDTC]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/transactions-msdtc/
[Web API]:https://docs.nodinite.com/core-services/web-api/overview/
[Windows Overview]:https://docs.nodinite.com/install-and-update/troubleshooting/windows/overview/