Fix AD replication error 8589 (the DS cannot derive a service principal name): find the DC named in event 1411 and restore the missing or wrong serverReference attribute on its server object in the Configuration partition.
Home › Guides › AD replication error 8589
Last updated 19 November 2026
Win32 error 8589 (0x218d, ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF) means the destination DC can't build the Kerberos SPN it needs to authenticate to a source DC, because that DC's server object (the parent of its NTDS Settings object, under CN=Sites in the Configuration partition) has no serverReference value, or a wrong one, in the destination's copy of the directory. To fix it:
<GUID>._msdcs.<forest root domain> name in it.CN=DCSRV02,OU=Domain Controllers,DC=contoso,DC=com.dcdiag fails the Replications test:
Starting test: Replications * Replications Check [Replications Check,<DC name>] A recent replication attempt failed: From <source DC> to <destination DC> Naming Context: DC=<DN path> The replication generated an error (8589): The DS cannot derive a service principal name (SPN) with which to mutually authenticate the target server because the corresponding server object in the local DS database has no serverReference attribute. The failure occurred at <date> <time>. The last success occurred at (never)| <date>.
dcdiag also shows a warning event EventID: 0x80000785 (that's KCC event 1925) for the link it couldn't build: "The attempt to establish a replication link for the following writable directory partition failed", with the source DC address given as <source DC NTDS Settings object GUID>._msdcs.contoso.com and error value 8589.
repadmin commands that typically report it include /showrepl, /showreps, /replsum and /syncall:
Source: <Site Name>\<DC Name> ******* <n> CONSECUTIVE FAILURES since <Date & Time> Last error: 8589 (0x218d): The DS cannot derive a service principal name (SPN) with which to mutually authenticate the target server because the corresponding server object in the local DS database has no serverReference attribute.
| Event source | Event ID | Meaning |
|---|---|---|
| NTDS Replication / ActiveDirectory_DomainService | 1411 | AD failed to construct a mutual authentication SPN for a directory service (names the GUID-based DNS name) |
| NTDS Replication | 2023 | The local DC couldn't replicate changes to a remote DC for a partition |
| NTDS KCC | 1925 | The attempt to establish a replication link for a writable partition failed |
Event 1411 is the one that leads you to the broken object:
Log Name: Directory Service Source: Microsoft-Windows-ActiveDirectory_DomainService Event ID: 1411 Task Category: DS RPC Client Level: Error Description: Active Directory Domain Services failed to construct a mutual authentication service principal name (SPN) for the following directory service. Directory service: <GUID>._msdcs.Contoso.com The call was denied. Communication with this directory service might be affected. Additional Data Error value: 8589 The DS cannot derive a service principal name (SPN) ...
To replicate, a DC authenticates to its partner with Kerberos, and it builds the partner's replication SPN from what it knows about that partner in its own copy of the Configuration partition. Each DC has a server object (CN=<DC>,CN=Servers,CN=<Site>,CN=Sites,CN=Configuration,..., the object you see under a site in Active Directory Sites and Services) whose serverReference attribute points to the DC's computer account. If that link is empty or wrong, there's no SPN to build and the call is refused with 8589.
Microsoft names two common triggers:
Related identity mix-ups give different errors: a wrong or duplicate SPN gives -2146893022, and missing, duplicate or conflict-mangled DC accounts give 1396.
repadmin /showrepl output and note the date and time after Last attempt on the failing entry.Get-WinEvent -FilterHashtable @{LogName='Directory Service'; Id=1411}Microsoft's example: on LIVCONTOSODC, repadmin shows the Configuration partition failing from Houston\5THWARDCORPDC with 8589 (1700 consecutive failures, last success never), and the matching event 1411 points at the object that needs a serverReference.
Use whichever option works:
ping 3dab7f9b-92e7-4391-b8db-71df532c1493._msdcs.contoso.com replies with the DC's host name, such as Pinging DCSRV02.contoso.com.Get-ADObject -Filter 'ObjectClass -eq "nTDSDSA"' -SearchBase 'CN=Configuration,DC=contoso,DC=com' -Server DCSRV01.contoso.com -IncludeDeletedObjects | Where-Object { $_.ObjectGUID -eq [guid]'3dab7f9b-92e7-4391-b8db-71df532c1493' } | Select-Object DistinguishedName Or write the whole list to a file and search it: Get-ADObject -Filter 'ObjectClass -eq "nTDSDSA"' -SearchBase 'CN=Configuration,DC=contoso,DC=com' -Server DCSRV01.contoso.com -IncludeDeletedObjects > C:\NTDSDSA.txt
CN=Sites,CN=Configuration,DC=contoso,DC=com with filter (objectClass=ntdsdsa), scope Subtree, attributes *, and look for the GUID in objectGUID.CN=DCSRV02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=contoso,DC=com.CN=DCSRV02,OU=Domain Controllers,DC=Contoso,DC=com.repadmin /showrepl or force replication from the partner and check the 8589 status clears.To spot other server objects with the same problem, list every server object and its serverReference (an empty value stands out):
Get-ADObject -SearchBase 'CN=Sites,CN=Configuration,DC=contoso,DC=com' -LDAPFilter '(objectClass=server)' -Properties serverReference | Select-Object Name, serverReference
Look up 1411, 2023 and 1925 in the Windows Event ID Lookup, copy the Get-ADObject nTDSDSA search, serverReference listing, ping GUID CNAME and Get-WinEvent lines from the PowerShell Cheat Sheet, pull GUIDs out of event text or repadmin output with the Regex Tester, check which site a DC address belongs to with the IPv4 Subnet Calculator or IPv6 Subnet Calculator, and identify a device from its MAC address with the MAC Vendor Lookup. Related guides: replication error -2146893022, replication error 1396, replication error 8240 and replication error 1908.
Every AD replication error code with its cause and fix: common Active Directory replication errors.
The DS cannot derive a service principal name (SPN) with which to mutually authenticate the target server (0x218d, ERROR_DS_CANT_DERIVE_SPN_WITHOUT_SERVER_REF): the destination DC's copy of a partner's server object has no serverReference, so it can't build the Kerberos SPN for replication.
Most often a replication partner was forcibly demoted and promoted again before end-to-end replication finished. Renaming a DC without serverReference being updated can also leave it wrong.
The one named in event 1411 on the destination DC, logged at the same time as the 8589 failure. Its GUID can differ from the DSA object GUID in repadmin output. Ping
On the DC's server object in the Configuration partition: CN=
No. -2146893022 (target principal name is incorrect) means the SPN reached the wrong account, and 1396 involves missing, duplicate or conflict-mangled DC accounts. 8589 happens before that: the DC can't even build the SPN because serverReference is missing.
Runbooks, checklists and helpdesk templates: IT Admin Packs on Gumroad.