AD Replication Error 8589: The DS Cannot Derive a Service Principal Name (SPN)

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

Quick answer

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:

  1. On the destination DC, find event 1411 logged at the same time as the 8589 failure and note the <GUID>._msdcs.<forest root domain> name in it.
  2. Work out which DC that GUID belongs to (ping it, or search the nTDSDSA objects for the GUID).
  3. In ADSI Edit, open that DC's server object under CN=Sites and set serverReference to the DN of the DC's computer account, for example CN=DCSRV02,OU=Domain Controllers,DC=contoso,DC=com.

What the error looks like

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 sourceEvent IDMeaning
NTDS Replication / ActiveDirectory_DomainService1411AD failed to construct a mutual authentication SPN for a directory service (names the GUID-based DNS name)
NTDS Replication2023The local DC couldn't replicate changes to a remote DC for a partition
NTDS KCC1925The 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) ...

Why it happens

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.

Step 1: Match the 8589 failure to event 1411

  1. On the destination DC that reports 8589, save repadmin /showrepl output and note the date and time after Last attempt on the failing entry.
  2. Find the event 1411 logged at that time in the destination's Directory Service log:
    Get-WinEvent -FilterHashtable @{LogName='Directory Service'; Id=1411}
  3. Note the GUID in the event. Expect it to be different from the DSA object GUID repadmin shows for the failing partner. That's normal for this error: the DC you need to fix is the one in the event.

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.

Step 2: Find which DC the GUID belongs to

Use whichever option works:

Step 3: Restore serverReference

  1. Run ADSIEDIT.msc, right-click ADSI Edit and choose Connect to, and pick the well-known naming context Configuration. Connect to the destination DC that logs 8589, because the missing value is in its copy.
  2. Expand CN=Configuration,DC=contoso,DC=com > CN=Sites > the DC's site > CN=Servers. For DCSRV02 in Default-First-Site-Name that's CN=DCSRV02,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,DC=contoso,DC=com.
  3. Open the server object's Properties, Attribute Editor tab, and find serverReference. It should hold the DN of the DC's computer account, such as CN=DCSRV02,OU=Domain Controllers,DC=Contoso,DC=com.
  4. If it's empty or wrong, set the correct value. Microsoft's shortcut: bind to the source DC with ADSI Edit (or Active Directory Users and Computers with Advanced Features), copy serverReference from its copy of the object, and paste it into the destination DC's copy.
  5. Close ADSI Edit, then rerun 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

Related tools and guides

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.

FAQ

What does replication error 8589 mean?

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.

What causes a missing serverReference?

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.

Which DC do I need to fix?

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 ._msdcs., or search nTDSDSA objects for the GUID with Get-ADObject or ldp.exe.

Where is the serverReference attribute?

On the DC's server object in the Configuration partition: CN=,CN=Servers,CN=,CN=Sites,CN=Configuration,, the parent of its NTDS Settings object. Edit it with ADSI Edit on the Attribute Editor tab; it should point to the DC's computer account, such as CN=DCSRV02,OU=Domain Controllers,DC=contoso,DC=com.

Is 8589 the same as error -2146893022 or 1396?

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.

Want the full kit?

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