Domain Controller does not allow interactive logon, shows error “The security database on the server does not have a computer account for this workstation trust relationship"


After rebooting, a Windows Server 2008 or Windows Server 2008 R2 DC cannot be logged on to anymore. You see this with both a console logon or terminal services/remote desktop. The error shown is:

"The security database on the server does not have a computer account for this workstation trust relationship"

If you restart the computer in Directory Services Restore Mode (DSRM) and examine the System event log, you see:

Log Name:      System
Source:        NETLOGON
Date:          1/27/2010 1:34:29 PM
Event ID:      5721
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
The session setup to the Windows NT or Windows 2000 Domain Controller \\ for the domain NWTRADERS failed because the Domain Controller did not have an account 2008R2SPN-02$ needed to set up the session by this computer 2008R2SPN-02. 

If this computer is a member of or a Domain Controller in the specified domain, the aforementioned account is a computer account for this computer in the specified domain. Otherwise, the account is an interdomain trust account with the specified domain.


Log Name:      System
Source:        Microsoft-Windows-Security-Kerberos
Date:          1/27/2010 1:35:19 PM
Event ID:      3
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
A Kerberos Error Message was received:
 on logon session
 Client Time:
 Server Time: 18:35:19.0000 1/27/2010 Z
 Extended Error: 0xc0000035 KLIN(0)
 Client Realm:
 Client Name:
 Server Name: host/
 Target Name: host/
 Error Text:
 File: 9
 Line: efb
 Error Data is in record data.

At every attempted logon, the Security event log will show:

Log Name:      Security
Source:        Microsoft-Windows-Security-Auditing
Date:          1/27/2010 2:51:13 PM
Event ID:      4625
Task Category: Logon
Level:         Information
Keywords:      Audit Failure
User:          N/A
An account failed to log on.

 Security ID:  SYSTEM
 Account Name:  2008SPN-02$
 Account Domain:  ADATUM
 Logon ID:  0x3e7

Logon Type:   2

Account For Which Logon Failed:
 Security ID:  NULL SID
 Account Name:  Administrator
 Account Domain:  ADATUM

Failure Information:
 Failure Reason:  An Error occurred during Logon.
 Status:   0xc000018b
 Sub Status:  0x0

Process Information:
 Caller Process ID: 0x214
 Caller Process Name: C:\Windows\System32\winlogon.exe

Network Information:
 Workstation Name: 2008SPN-02
 Source Network Address:
 Source Port:  0

Detailed Authentication Information:
 Logon Process:  User32
 Authentication Package: Negotiate
 Transited Services: -
 Package Name (NTLM only): -
 Key Length:  0

This event is generated when a logon request fails. It is generated on the computer where access was attempted.

The Subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe.

The Logon Type field indicates the kind of logon that was requested. The most common types are 2 (interactive) and 3 (network).

The Process Information fields indicate which account and process on the system requested the logon.

The Network Information fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases.

The authentication information fields provide detailed information about this specific logon request.
 - Transited services indicate which intermediate services have participated in this logon request.
 - Package name indicates which sub-protocol was used among the NTLM protocols.
 - Key length indicates the length of the generated session key. This will be 0 if no session key was requested.

You may also see a KDC 11 error for a duplicate SPN in the System event log:

Log Name:      System
Source:        Microsoft-Windows-Kerberos-Key-Distribution-Center
Date:          1/27/2010 2:45:03 PM
Event ID:      11
Task Category: None
Level:         Error
Keywords:      Classic
User:          N/A
The KDC encountered duplicate names while processing a Kerberos authentication request. The duplicate name is host/ (of type DS_SERVICE_PRINCIPAL_NAME). This may result in authentication failures or downgrades to NTLM. In order to prevent this from occurring remove the duplicate entries for host/ in Active Directory.

The DCs Service Principle Name (SPN) has been duplicated and now exists as an attribute on both the DC as well as some other user or computer.

Locate the duplicate SPN and remove it. This value can be found with SETSPN.EXE or LDIFDE.EXE. In this example the duplicate name is "2008r2spn-02"

  • setspn.exe -x
  • setspn.exe -q 2008r2spn-02*
  • ldifde.exe -f spn.txt -d -l serviceprincipalname -r "(serviceprincipalname=*2008r2spn-02*)" -p subtree
More Information

This behavior differs from Windows Server 2003 or Windows 2000. Those operating systems do not get the same errors and can still be logged into with duplicate DC SPNs. Starting in Windows Vista, failback to NTLM is disallowed with interactive logons - this is a security feature to prevent an attacker from somehow damaging Kerberos, thereby forcing a less secure protocol to be used.

In order to update an SPN on a user or computer, a user must be a member of Administrators, Domain Admins, Enterprise Admins, or have been granted permissions to modify the servicePrincipalName attribute on a user or computer. No standard user can modify SPN's - not even on themselves or computers they added to the domain. Only high privilege users can create this outage scenario.

Note This is a "FAST PUBLISH" article created directly from within the Microsoft support organization. The information contained herein is provided as-is in response to emerging issues. As a result of the speed in making it available, the materials may include typographical errors and may be revised at any time without notice. See Terms of Use for other considerations.

Αναγνωριστικό άρθρου: 2015518 - Τελευταία αναθεώρηση: 01/06/2011 23:45:00 - Αναθεώρηση: 4.0

Windows Server 2008 Datacenter, Windows Server 2008 Enterprise, Windows Server 2008 R2 Datacenter, Windows Server 2008 R2 Enterprise, Windows Server 2008 R2 Standard, Windows Server 2008 Service Pack 2, Windows Server 2008 Standard

  • KB2015518