Windows XP Computer Account Domain Authentication
When a Windows XP professional workstation joins an Active Directory
domain, it requires its own machine account (ComputerName$)
to establish trust and authenticate against a Domain Controller (DC)
before any user logs in. This article outlines the specific network and
protocol interactions required between Windows XP and a Domain
Controller to authenticate the computer account, including DNS
discovery, Kerberos ticket requests, Netlogon secure channel
initialization, and fallback mechanisms.
Domain Controller Discovery
The authentication sequence begins during the system boot process.
Windows XP must first locate an operational Domain Controller using the
Domain Name System (DNS). The workstation issues DNS queries to resolve
SRV records (specifically
_ldap._tcp.dc._msdcs.<DomainName>) to identify
available DCs in its configured Active Directory site. If DNS resolution
is unavailable or misconfigured, Windows XP falls back to legacy NetBIOS
name resolution via WINS or local subnet broadcasts to locate a domain
controller.
Kerberos Pre-Authentication and Ticket Issuance
Once a Domain Controller is located, Windows XP relies primarily on Kerberos v5 for computer account authentication in a native Active Directory environment:
- AS-REQ (Authentication Service Request): The
workstation's Local Security Authority Subsystem Service (LSASS) sends a
Kerberos
AS-REQto the DC’s Key Distribution Center (KDC) over UDP port 88. This request uses the computer account name and includes pre-authentication data encrypted with the machine's shared secret (a password automatically managed and rotated by Windows XP). - AS-REP (Authentication Service Response): The KDC
verifies the encrypted timestamp against the computer object in Active
Directory. If verified, the KDC issues an
AS-REPcontaining a Ticket Granting Ticket (TGT) and a session key encrypted with the computer's secret key. - TGS Exchanges: With the machine TGT, Windows XP
requests service tickets (
TGS-REQ/TGS-REP) to interact with required domain services, such as LDAP for directory queries and CIFS/SMB for file shares.
Netlogon Secure Channel Establishment
Simultaneously, Windows XP must establish a secure communication channel with the DC via the Netlogon service over Remote Procedure Call (RPC):
- Negotiation: The client contacts the DC’s Netlogon
service using RPC over SMB (named pipe
\PIPE\NETLOGON) or direct RPC endpoints over TCP. - Challenge/Response Validation: The client and DC
exchange challenges (
NetrServerReqChallenge) to compute a shared session key derived from the computer account password. - Authentication: Using the
NetrServerAuthenticate3RPC call, both parties authenticate each other without transmitting the machine password over the wire. This established secure channel is essential for maintaining domain trust, validating user logons via pass-through authentication, and synchronizing account secrets.
NTLM Fallback
If the domain controller runs Windows NT 4.0, or if Kerberos fails due to severe clock synchronization drift (greater than the default 5-minute skew tolerance) or SPN misconfigurations, Windows XP falls back to NTLM authentication. In this scenario, the machine account authenticates strictly through the Netlogon secure channel using the NTLM challenge-response protocol rather than obtaining Kerberos tickets.
Machine Group Policy and Session Finalization
Following successful authentication via Kerberos and the Netlogon
secure channel, the workstation uses its machine credentials to access
the DC's SYSVOL share over SMB. It retrieves and applies
computer-level Group Policy Objects (GPOs), establishes secure LDAP
connections to read directory configuration, and signals the operating
system that the computer is authenticated, allowing the Windows XP logon
screen (GINA) to accept domain user credentials.