Duplicate SPN

Andreas Ernst 1 Reputation point
2022-07-04T13:25:40.75+00:00

Hello,

iam seeing in the eventlog ActiveDirectory_DomainService with the message that there is a duplicate SPN. No idea how this could be archived)

The attribute value provided is not unique in the forest or partition. Attribute: servicePrincipalName Value=E3514235-4B06-11D1-AB04-00C04FC2DCD2-ADAM/ServerName:50500
CN=ServerName,OU=Systeme,DC=mydomain,DC=int
Value=E3514235-4B06-11D1-AB04-00C04FC2DCD2-ADAM/ServerName:50500
CN=ServerName,OU=Systeme,DC=mydomain,DC=int
CN=ServerName,OU=Systeme,DC=mydomain,DC=int
CN=ServerName,OU=Systeme,DC=mydomain,DC=int Winerror: 8647
See http://go.microsoft.com/fwlink/?LinkID=279782 for more details on this policy.

So I had the SPNs displayed and indeed there was this duplicated SPN again under deleted objects.

repadmin /showattr DC1 "DC=mydomain,DC=int" /subtree /filter:"(servicePrincipalName=E3514235-4B06-11D1-AB04-00C04FC2DCD2-ADAM)" /deleted /atts:DN

I deleted it with delete-ADObject and now I only see one entry when I run my filter.

Nevertheless, my DC spits out the event that there is still this duplicate SPN with nice regularity.
setspn -X -F returnes nothing unecpected
The overall structure "DC=domain,DC=int" is checked.
The process is performed within the overall structure, this process may take some time.
Entry 5 is processed.
0 Group of duplicate SPNs found.

What am I missing? In my opinion there shouldn't be anything thumbstoned when I delete the object hard from the trash or am I wrong? Do I have to wait for some garbage collector job?

I am looking forward to answers.

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2022-07-04T13:31:08.733+00:00

    Something here could help.
    https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/component-updates/spn-and-upn-uniqueness

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  2. Limitless Technology 39,926 Reputation points
    2022-07-05T13:36:20.643+00:00

    Hello AndreasErnst

    In most cases the mysterious case of reappearing SPNs is related to 3rd Party LDS tools that interact with your Active Directory. Usually, when a 3rd Party LDS tool is installed in a Member server instead of a Domain controller may produce a synchronization issue, where the Admin deletes an object in AD, but the LDS 3rd Party tool recreates the object.

    The solution for this is:

    • Ensure that you delete the object in the LDS tool before deleting in AD
    • Install the LDS 3rd Party tool in a Domain Controller, to ensure the full synchronization.

    Additionally, for more context and tests, I can also recommend the next official article:
    https://learn.microsoft.com/en-us/windows-server/identity/ad-ds/manage/component-updates/spn-and-upn-uniqueness

    ---------------------------------------------------------------------------------------------------------------------------------------

    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  3. Andreas Ernst 1 Reputation point
    2022-07-07T10:27:16.057+00:00

    Hello,
    No 3rd party tools are in place. It bugs me...
    The dcdiag test knowsofroleholders runs without an error (Monitoring) but some times a day he comes up with this not unique spn.

    0 comments No comments

  4. Gary Nebbett 6,216 Reputation points
    2022-07-07T10:42:39.767+00:00

    Hello Andreas,

    This is just a guess, but is it possible that there is no duplicate SPN and the error is caused and logged when some software (possibly some synchronization software) tries to add a new (duplicate) SPN (which fails)?

    The error code (8647 = ERROR_DS_SPN_VALUE_NOT_UNIQUE_IN_FOREST, message: "The operation failed because SPN value provided for addition/modification is not unique forest-wide.") is more suited to denying the addition of an SPN than reporting the detection of duplicate SPNs.

    Gary

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.