Error Code: 0x7 KDC_ERR_S_PRINCIPAL_UNKNOWN LDAP/Localhost

Adamecz Zoltán 0 Reputation points
2024-09-10T14:24:28.53+00:00

Hi!

"In the event log, an entry like this appears every 5 minutes. How do I fix it?"


A Kerberos error message was received:

on logon session

Client Time:

Server Time: 13:55:10.0000 9/10/2024 Z

Error Code: 0x7 KDC_ERR_S_PRINCIPAL_UNKNOWN

Extended Error:

Client Realm:

Client Name:

Server Realm: Contoso.com

Server Name: LDAP/localhost

Target Name: LDAP/localhost@Contoso.com

Error Text:

File: onecore\ds\security\protocols\kerberos\client2\kerbtick.cxx

Line: 1286

Error Data is in record data.


By entering this, I received another error message:

setspn -A LDAP/localhost Contoso.com\administrator."


A Kerberos error message was received:

on logon session

Client Time:

Server Time: 13:45:10.0000 9/10/2024 Z

Error Code: 0x29 KRB_AP_ERR_MODIFIED

Extended Error:

Client Realm:

Client Name:

Server Realm: Contoso.com

Server Name: dc01$

Target Name:

Error Text:

File: onecore\ds\security\protocols\kerberos\client2\ctxtapi.cxx

Line: 5a1

Error Data is in record data.


"So this is not the solution, but what should I enter to make it work?"


"Of course, I replaced the domain name with contoso.com."

Windows Server 2016
Windows Server 2016
A Microsoft server operating system that supports enterprise-level management updated to data storage.
2,500 questions
Active Directory
Active Directory
A set of directory-based technologies included in Windows Server.
6,496 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Zunhui Han 2,085 Reputation points Microsoft Vendor
    2024-09-10T14:41:20.54+00:00

    Hello,

    Thank you for posting in Q&A forum.

    KDC_ERR_C_PRINCIPAL_UNKNOWN means the domain controller does not know which client principal it should use to encrypt the ticket.To resolve this, determine if the requestor has the correct UPN.

    For more details, I suggest you refer to the following link:

    https://techcommunity.microsoft.com/t5/ask-the-directory-services-team/kerberos-errors-in-network-captures/ba-p/400066

    I hope the information above is helpful.

    Best regards

    Zunhui

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.


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.