Handling Kerberos Errors in SMB Client Authentication

E-8437 21 Reputation points
2025-03-25T11:49:13.28+00:00

Hi,

We are seeking clarification on how our SMB client should handle various Kerberos errors encountered during authentication.

The MS-KILE specification provides guidance on recovering from KRB_AP_ERR_SKEW, but we could not find similar instructions for handling other Kerberos errors, such as KRB_ERR_GENERIC, that may occur during the SMB authentication phase.

Is there a specification or best practice document outlining how the client should handle and recover from each Kerberos error?

Your guidance on this matter would be greatly appreciated.

Windows development | Windows Open Specifications
{count} votes

1 answer

Sort by: Most helpful
  1. KristianSmith-MSFT 451 Reputation points Microsoft Employee Moderator
    2025-03-25T17:52:25.1933333+00:00

    Hi E-8437,

    The error message KRB_ERR_GENERIC is a broad bucket error as you're likely aware. This is an intentional passive security measure. We do not describe how to handle such an error as there are a vast number of reasons for it to arise. Your best bet is to address the error based on current context (ie: what recent messages were sent, were the messages formatted correctly, etc.).

    Thanks again for reaching out with your question.

    Regards,
    Kristian S
    Support Escalation Engineer
    Microsoft Open Specifications


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.