AD Replication Error 5: Access Is Denied

Fix Active Directory replication error 5 (Access is denied): run dcdiag /test:CheckSecurityError, then check the secure channel, CrashOnAuditFail, trusts, time skew, RestrictRemoteClients, network logon rights, SMB signing and Kerberos.

Home › Guides › AD replication error 5

Last updated 19 November 2026

Quick answer

Replication error 5 (5(0x5), "Access is denied.") means the destination DC couldn't authenticate to, or was refused by, the source DC. It is not a missing replication permission (that is error 8453, Replication access was denied). Start on the destination DC:

  1. Run DCDIAG, then DCDIAG /TEST:CheckSecurityError (it includes an SPN registration check), and fix what they report.
  2. Retry replication. If it still fails, go through Microsoft's causes below, most common first: a broken secure channel or machine password mismatch, CrashOnAuditFail = 2, a broken trust, time skew, RestrictRemoteClients = 2, a missing Access this computer from the network right, an SMB signing mismatch, fragmented UDP Kerberos packets, Large Send Offload, or an invalid Kerberos realm.

What the error looks like

dcdiag (Replications test):

[Replications Check,<Destination_DC_Name>] A recent replication attempt failed:
From <Source_DC> to <Destination_DC>
Naming Context: <Directory_Partition_DN_Path>
The replication generated an error (5):
Access is denied.

DCDIAG /test:CHECKSECURITYERROR reports that DsBindWithSpnEx failed with error 5. repadmin /showrepl (also /kcc, /replicate, /replsum, /showreps, /syncall):

<Site_Name>\<DC_2_Name> via RPC
DSA object GUID: <GUID>
Last attempt @ <Date> <Time> failed, result 5(0x5):
Access is denied.
<#> consecutive failure(s).

Replicate Now in Active Directory Sites and Services: "The following error occurred during the attempt to synchronize naming context ... Access is denied. The operation will not continue."

Directory Service events that frequently cite status 5 (KB 3073945's table heading says 8524, a copy slip from the 8524 article; the events are the ones it lists for error 5):

EventSourceText
1655NTDS GeneralActive Directory tried to communicate with the following global catalog and the attempts were unsuccessful.
1925NTDS KCCThe attempt to establish a replication link for the following writable directory partition failed.
1926NTDS KCCThe attempt to establish a replication link to a read-only directory partition with the following parameters failed.

Cause 1: Broken secure channel or machine password mismatch

Check the secure channel:

nltest /sc_query:contoso.com
netdom verify <DC name> /domain:contoso.com

If it is broken, reset the destination DC's machine password:

  1. Disable the KDC service on the destination DC: Set-Service -Name KDC -StartupType Disabled, then stop it (Stop-Service -Name KDC).
  2. Purge the system's Kerberos tickets from an elevated prompt: klist -li 0x3e7 purge.
  3. Reset the password. The netdom reference says netdom resetpwd runs on the DC whose password you reset (it doesn't reset remote machines); /server: names another DC to set it against:
    netdom resetpwd /server:<other DC> /userd:<domain>\administrator /passwordd:*
  4. Make sure the likely KDCs and the source DC (if in the same domain) have replicated the new password inbound.
  5. Set the KDC back to Automatic, start it and retry replication.

Cause 2: CrashOnAuditFail = 2

A value of 2 appears when the policy Audit: Shut down system immediately if unable to log security audits is enabled and the Security log is full. DCs are especially prone when auditing is on and the log size is capped with Do not overwrite events (clear log manually). Check it:

reg query "HKLM\SYSTEM\CurrentControlSet\Control\Lsa" /v CrashOnAuditFail

Fix: save and clear the Security log, rethink the log size limits (including policy-based settings), delete and re-create CrashOnAuditFail under HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\LSA as REG_DWORD 1, and restart the destination DC. Microsoft adds that support engineers have also fixed error 5 with a value of 0 or 1 by clearing the Security log again, deleting the value and rebooting.

Cause 3: Broken trust or secure channel along the trust path

When replication fails between DCs in different domains, check every trust along the path. In Microsoft's example (root Contoso.COM, child B.Contoso.COM, grandchild C.B.Contoso.COM, tree Fabrikam.COM), replication between C.B.Contoso.COM and Fabrikam.COM needs C.B to B, B to Contoso.COM, then Contoso.COM to Fabrikam.COM to be healthy. With a shortcut trust, only check the shortcut. Look for recent trust password changes and make sure the destination DC has replicated them:

Repadmin /showobjmeta * <DN path for TDO in question>

Reset a trust from the root domain PDC, or from the child domain PDC:

netdom trust <Root Domain> /Domain:<Child Domain> /UserD:CHILD /PasswordD:* /UserO:ROOT /PasswordO:* /Reset /TwoWay
netdom trust <Child Domain> /Domain:<Root Domain> /UserD:Root /PasswordD:* /UserO:Child /PasswordO:* /Reset /TwoWay

Cause 4: Time skew

Kerberos policy in the Default Domain Policy allows a five-minute difference by default. What counts is the relative time between the KDC the destination DC uses and the target (the source DC), not whether either matches real time. Every DC running the KDC service is a potential KDC, so compare all of them, including the destination itself, against the source. Check with:

DCDIAG /TEST:CheckSecurityError
W32TM /MONITOR

W32TM /MONITOR only checks DCs in the computer's own domain; run it in each domain and compare. Signs of skew:

Then find out why the time drifted: is the forest root PDC set to an external time source, are the sources reachable, is the time service running, and do DCs use the NT5DS hierarchy? See Kerberos clock skew (KRB_AP_ERR_SKEW) for the time setup.

Cause 5: RestrictRemoteClients = 2

If the policy Restrictions for Unauthenticated RPC clients is enabled and set to Authenticated without exceptions, RestrictRemoteClients is 0x2 in HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows NT\RPC. Only authenticated RPC clients can connect, with no exceptions, and Microsoft says this setting should never be applied to a domain controller. Disable the policy (Computer Configuration\Administrative Templates\System\Remote Procedure Call\Restrictions for Unauthenticated RPC clients), delete the RestrictRemoteClients value and restart.

Cause 6: Access this computer from the network right

The Default Domain Controllers Policy, linked to the Domain Controllers OU, grants Access this computer from network to Administrators, Authenticated Users, Everyone, Enterprise Domain Controllers and Pre-Windows 2000 Compatible Access. Check that:

Microsoft prefers GPRESULT to RSOP.MSC here because it's more accurate:

gpresult /h c:\temp\GPOResult.html
gpresult /z

Removing both Everyone and Enterprise Domain Controllers from the right used to be common and is fatal; there's no reason to remove Enterprise Domain Controllers, since only DCs are in it.

Cause 7: SMB signing mismatch

Compare these four settings on the source and destination DCs; the classic failure is a setting enabled or required on one side and disabled on the other:

Policy settingRegistry value
Microsoft network client: Digitally sign communications (if server agrees)HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters\EnableSecuritySignature
Microsoft network client: Digitally sign communications (always)HKLM\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters\RequireSecuritySignature
Microsoft network server: Digitally sign communications (if client agrees)HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\EnableSecuritySignature
Microsoft network server: Digitally sign communications (always)HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters\RequireSecuritySignature

(KB 3073945 labels the server "if client agrees" setting as "if server agrees"; the name above is the one in Microsoft's error 1722 article.) Microsoft's internal testing also saw SMB signing mismatches cause error 1722 instead of 5.

Cause 8: Fragmented UDP Kerberos packets

Routers and switches can fragment or drop large UDP packets used by Kerberos and EDNS0. From the destination DC, find the largest packet the path carries without fragmenting (-f sets Do Not Fragment, IPv4 only; -l sets the data size):

ping -f -l 1472 <Source_DC_hostname>.<domain>

If the largest unfragmented size is under 1,472 bytes, Microsoft's options in order are: fix the network so it carries large UDP frames (firmware or configuration on routers, switches or firewalls); set MaxPacketSize on the destination DC to that size less 8 bytes and restart; or set MaxPacketSize to 1 so Kerberos uses TCP, and restart. The value lives under HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\Kerberos\Parameters (REG_DWORD); the Kerberos registry article says packets larger than it go over TCP and that on Windows Vista and later the default is 0, so the Windows Kerberos client doesn't use UDP unless the value was changed.

Cause 9: Large Send Offload

On the destination DC, open the network adapter properties, select Configure, then the Advanced tab, disable IPv4 Large Send Offload and restart the DC.

Cause 10: Invalid Kerberos realm

The realm is invalid if the KdcNames value wrongly contains the local AD domain name, or if the PolAcDmN and PolPrDmN keys don't match.

Microsoft also lists, without detail: an LM compatibility mismatch between the DCs, SPNs not registered or not yet replicated, and antivirus with a mini-firewall network filter driver on either DC.

Missing SPNs in CheckSecurityError

CheckSecurityError can also show missing SPNs on the DC's machine account, for example:

* Missing SPN :LDAP/<hostname>.<DNS domain name>/<DNS domain name>
* SPN found :HOST/<hostname>.<DNS domain name>
Unable to verify the machine account (<DN path for Dc machine account>) for <DC Name> on <DC name>.

The dcdiag reference says /fix affects the MachineAccount test only and fixes the SPNs on the DC's machine account object. If the SPNs exist but haven't reached the KDC yet, that's the replication latency case above.

Error 5 or error 8453?

The same symptoms can come with error 8453 ("Replication Access was denied."). These cause 8453 but not 5: the NC head doesn't grant Replicating Directory Changes; the account starting replication isn't in a group that has it; SERVER_TRUST_ACCOUNT or TRUSTED_FOR_DELEGATION is missing from userAccountControl; or an RODC joined without ADPREP /RODCPREP. See the 8453 guide.

Related tools and guides

Look up 1655, 1925, 1926 and 40960 in the Windows Event ID Lookup, copy the nltest, netdom, klist, w32tm and gpresult lines from the PowerShell Cheat Sheet, pull error codes and DC names out of repadmin /showrepl * /csv output with the Regex Tester, check whether a DC address in a trace is in the right subnet with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify the adapter or filtering device behind a MAC address with the MAC Vendor Lookup. Related guides: replication error 8453, replication error -2146893022, Kerberos clock skew, the trust relationship between this workstation and the primary domain failed, KCC event 1311 and KCC event 1865.

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

FAQ

What does AD replication error 5 Access is denied mean?

The destination domain controller could not authenticate to the source DC or was refused by it. Microsoft's common causes are a broken secure channel or machine password, CrashOnAuditFail set to 2, broken trusts, time skew, RestrictRemoteClients set to 2, a missing network logon right, SMB signing mismatches and Kerberos packet problems.

What should I run first?

On the destination DC run DCDIAG and then DCDIAG /TEST:CheckSecurityError. The CheckSecurityError test reports time skew, DsBindWithSpnEx failures and missing SPNs. Fix what it reports and retry replication before working through the other causes.

How does CrashOnAuditFail cause access denied?

When the policy to shut down if security audits cannot be logged is on and the Security log fills up, CrashOnAuditFail becomes 2. Save and clear the Security log, revisit the log size limits, set CrashOnAuditFail back to 1 under HKLM System CurrentControlSet Control Lsa and restart the DC.

How much time skew causes error 5?

More than the Kerberos maximum tolerance, five minutes by default in the Default Domain Policy, between the KDC the destination DC uses and the source DC. Check with DCDIAG /TEST:CheckSecurityError and W32TM /MONITOR in each domain.

Is error 5 the same as error 8453?

No. Error 8453 Replication access was denied is about missing Replicating Directory Changes permissions, userAccountControl flags or RODCPREP. Error 5 is about authentication: secure channels, trusts, time, RPC restrictions, network logon rights, SMB signing and Kerberos transport.

Want the full kit?

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