Posted On October 27, 2020

Remote Desktop: Broken Domain Trust Relationship Between Workstation an Primary Domain Controller

kimconnect 0 comments
blog.KimConnect.com >> Windows >> Remote Desktop: Broken Domain Trust Relationship Between Workstation an Primary Domain Controller
Symptom

Remote desktop initiation toward a certain server would result in an error message with this verbiage: ‘The trust relationship between this workstation and the primary domain failed.’

Background Information
 
    • Each domain joined computer has a unique computer account SID and a password that resets at a regular interval (30 days by default)
    • The computer account and password authenticates to its domain controller using the Kerberos protocol and store tokens locally
    • Kerberos Token is dependent on a time sync between the localhost and the domain controller
    • Kerberos Version 5 has a default maximum tolerance for computer clock synchronization of 5 minutes
    • If the time sync difference is over a that threshold, that token becomes invalidated and computer cannot authenticate to the domain
    • Once a computer cannot authenticate to the domain, domain users cannot logon to that machine
    • Valid local computer accounts can still logon as that does not depend on Kerberos nor Windows Time.
Probable Cause Analysis
    • The Windows W32Time service has stopped long enough for the computer time to drift past the 5-minute difference – this is most likely the direct cause. To drill down further, one may check OS stability (CPU, RAM, and storage utilization alerts).
    • Network outage or firewall blockage of port UDP/123 – this is unlikely for servers that are physically assigned to a stable location
    • BIOS time is incorrect due to a dead CMOS battery (or no battery as in the case of virtual machines)
Resolutions
  • Immediate options:
    1. Manual change to computer time to match that of the DC
    2. Un-join and rejoin computer to the domain
  • Long-term:
    1. Ensure that server is healthy, having adequate RAM, CPU, and storage resources
    2. No network or firewall problems
    3. W32Time is properly set and running with this config:
      • PDC: ntp.org
      • Other machines: DOMHIER, ntp.org

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

IT Security Compliance

To prepare an organization for compliance of Section 404 of COBIT (Control Objectives for Information…

How to set VNC shortcut to run as another user

In order to make the VNC program run as another user you can do either…

Some Windows Tools

Change Office Product Key 2003 2007http://support.microsoft.com/kb/895456 How to enable Remote desktop remotely (another article on…