AD Replication Error 1396: Logon Failure: The Target Account Name Is Incorrect

Fix AD replication error 1396 (Logon failure: the target account name is incorrect): read event 1645 for the replication SPN and KDC, find the global catalog it searches, look up the SPN and fix the source DC account.

Home › Guides › AD replication error 1396

Last updated 19 November 2026

Quick answer

Win32 error 1396 (0x574) is a Kerberos lookup failure: when the destination DC asks for a ticket to the source DC, the KDC can't find the source DC's replication service principal name (SPN) on the global catalog it searches, or finds it on the wrong account. The fix:

  1. On the destination DC, read NTDS Replication event 1645: it names the SPN being looked up and the KDC used.
  2. On that KDC, run nltest /dsgetdc:<forest root DNS domain name> /gc right after a failed attempt to see which GC it searches.
  3. Search that GC for the SPN with repadmin /showattr or dsquery *.
  4. Check that the host object exists, isn't CNF-mangled or in LostAndFound, and that the SPN is only on the source DC's computer account. If it's missing, find out whether it's replication latency or a replication failure.
  5. Check secure channel and trust health, DC time, and the special cases (DC promotion helper SPN, deleted RODC krbtgt account).

What the error looks like

dcdiag:

Testing server: <Site name><DC Name>
Starting test: Replications
[Replications Check,<DC Name>] A recent replication attempt failed:
From <source DC> to <destination DC>
Naming Context: CN=<DN path of naming context>
The replication generated an error (1396):
Logon Failure: The target account name is incorrect.
The failure occurred at <date> <time>.
The last success occurred at <date> <time>.
XX failures have occurred since the last success

repadmin commands that report 1396 include /add, /replsum, /rehost, /showvector /latency, /showreps, /showrepl and /syncall. Microsoft's repadmin /showreps sample:

Default-First-Site-Name\CONTOSO-DC1
DSA Options: IS_GC
...
==== INBOUND NEIGHBORS ======================================
DC=contoso,DC=com
    Default-First-Site-Name\CONTOSO-DC2 via RPC
        DSA object GUID: <GUID>
        Last attempt @ <date> <time> failed, result 1396 (0x574):
            Logon Failure: The target account name is incorrect.
        <#> consecutive failure(s).
        Last success @ <date> <time>.

Replicate now in Active Directory Sites and Services:

The following error occurred during the attempt to synchronize naming context <partition DNS path> from domain controller <source DC> to domain controller <destination DC>:
Logon Failure: The target account name is incorrect. This operation will not continue.

Events that commonly cite 1396:

SourceEvent IDEvent string
Microsoft-Windows-ActiveDirectory_DomainService1125The Active Directory Domain Services Installation Wizard (Dcpromo) was unable to establish connection with the following domain controller.
NTDS Replication (lists the 3-part SPN)1645Active Directory didn't perform an authenticated remote procedure call (RPC) to another domain controller because the desired service principal name (SPN) for the destination domain controller isn't registered on the Key Distribution Center (KDC) domain controller that resolves the SPN.
Microsoft-Windows-ActiveDirectory_DomainService1655Active Directory Domain Services attempted to communicate with the following global catalog and the attempts were unsuccessful.
Microsoft-Windows-ActiveDirectory_DomainService2847The KCC located a replication connection for the local read-only directory service and attempted to update it remotely on the following directory service instance. The operation failed. It will be retried.
NTDS KCC1925The attempt to establish a replication link for the following writable directory partition failed.
NTDS KCC1926The attempt to establish a replication link to a read-only directory partition with the following parameters failed.
NETLOGON5781Server can't register its name in DNS

Other places 1396 shows up, from Microsoft's article:

Why it happens

In AD replication the Kerberos client is the destination DC. The KDC that looks up the SPN is usually the destination DC itself but can be a remote DC, and it searches a global catalog. Microsoft's known root causes:

Error -2146893022 (the target principal name is incorrect) is a different Kerberos failure: there the destination DC reaches the wrong DC or the source DC can't decrypt the ticket (for example because the KDC and source DC hold different versions of its password). See the -2146893022 guide.

Step 1: Read event 1645 on the destination DC

Note three things from NTDS Replication event 1645 in the Directory Service log:

Get-WinEvent -FilterHashtable @{LogName='Directory Service'; Id=1645}

Step 2: Find the global catalog the KDC searches

At the console of the KDC from event 1645, right after a replication attempt fails with 1396:

nltest /dsgetdc:<forest root DNS domain name> /gc

/dsgetdc with /GC returns only domain controllers that are global catalog servers. The GC the KDC uses may also show up in event 1655.

Step 3: Search that GC for the SPN

With repadmin (query the GC port with /gc, starting at the forest root domain):

repadmin /showattr <GC used by KDC> "<DN path of forest root domain>" /filter:"(serviceprincipalname=<SPN cited in the NTDS Replication event 1645>)" /gc /subtree /atts:cn,serviceprincipalname

Or with dsquery, Microsoft's example (forestroot searches the global catalog; use the GUID from your event):

dsquery * forestroot -scope subtree -filter "(serviceprincipalname=E3514235-4B06-11D1-AB04-00C04FC2DCD2/ff9872f4-663a-4e15-8246-51a251613b58*)" -attr * -s contoso-dc1.corp.contoso.com

Step 4: Check what you found

Step 5: Check secure channel and trust health

Microsoft's last step is to check secure channel and trust health. nltest /sc_query:contoso.com shows a computer's secure channel; the replication error 5 guide walks through secure channel, machine password and trust checks for DCs, and the trust relationship guide covers member computers.

Other causes and fixes

SymptomCauseFix
The DC time is wrong (events 1925 and 1645)A virtual DC was set to sync time with its VMware host.Turn off host time sync for the virtual DC so it takes time from the domain hierarchy (the PDC). See the clock skew guide.
DC promotion fails with the NTDS Settings error above (events 1645, 1168, 1125)The SPN on the helper DC (the replication source) isn't valid.Create a new SPN on the helper DC with setspn, in the format GC/serverName.contoso.com.
Replication to an RODC fails; the RODC KDC won't startThe RODC's KRBTGT_##### account was deleted.Authoritatively restore the KRBTGT_##### account with NTDSUTIL, then import the LDIFDE file to fix backlinks. At minimum, msDS-KrbTgtLink on the RODC's computer object must point to the DN of the restored account.

For the helper DC case, setspn's -S switch adds an SPN after checking for duplicates (Microsoft recommends it over -A); run it from an elevated prompt:

setspn -S GC/<helper DC name>.contoso.com <helper DC name>

setspn -L <helper DC name> lists the SPNs registered on the account before and after.

Related tools and guides

Look up 1645, 1655, 1925, 2847 and 5781 in the Windows Event ID Lookup, copy the nltest /dsgetdc /gc, repadmin /showattr SPN search, dsquery and setspn lines from the PowerShell Cheat Sheet, pull the SPN and NTDS Settings GUID out of event 1645 with the Regex Tester, check whether the KDC and global catalog are in the destination DC's site subnet with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and tell from a DC's MAC address whether it is a virtual machine (check host time sync) with the MAC Vendor Lookup. Related guides: replication error -2146893022, KRB_AP_ERR_MODIFIED (duplicate SPN), replication error 8606 and replication error 8418. If the partner's server object has no serverReference, the DC can't even build the SPN: see replication error 8589.

Seeing Logon Failure: The target account name is incorrect when you open a file share through a DNS alias? See SMB share access fails through a DNS CNAME alias.

Every AD replication error code with its cause and fix: common Active Directory replication errors.

FAQ

What does AD replication error 1396 mean?

Logon Failure: The target account name is incorrect (0x574). The KDC could not find the source domain controller's replication SPN on the global catalog it searched on behalf of the destination DC, or found it on a different account, so Kerberos authentication for replication failed.

Where do I find the SPN that error 1396 is about?

In NTDS Replication event 1645 in the Directory Service log of the destination DC. It lists the three-part SPN E3514235-4B06-11D1-AB04-00C04FC2DCD2, then the GUID of the source DC's NTDS Settings object, then the domain, and the KDC that was used.

How do I find which global catalog the KDC searches?

On the KDC named in event 1645, run nltest /dsgetdc: with the forest root DNS domain name and /gc right after a replication attempt fails with 1396. Event 1655 can also name the global catalog.

What is the difference between error 1396 and -2146893022?

With 1396 the KDC cannot find the SPN or the account that holds it on the global catalog. With -2146893022 (the target principal name is incorrect) the destination reaches the wrong DC or the source DC cannot decrypt the ticket, for example because the KDC and the source DC hold different versions of its password.

Can wrong time cause replication error 1396?

Yes. Microsoft lists an incorrect DC time as a symptom; in its example a virtual DC synced time with its VMware host, which caused events 1925 and 1645. Turning off host time sync so the DC takes time from the PDC fixed it.

Want the full kit?

Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.