Does Windows 11 support KerbTicketLogon through a custom Credential Provider for initial sign-in?

lvcnam 0 Reputation points
2026-11-25T17:15:53.59+00:00

We are developing a custom x64 Credential Provider on Windows 11 25H2 for our organization. The workstation is not joined to Active Directory. Our service uses MIT Kerberos PKINIT with a smart card to obtain a ticket for the workstation’s host/ SPN.

A direct LsaLogonUser call with logon type Interactive, the Windows Kerberos authentication package, and native pointers succeeds with the host/ service ticket and a forwarded TGT. It returns a primary token with the expected local user SID.

Initial sign-in from our tile fails. In ICredentialProviderCredential::GetSerialization (CPUS_LOGON), we target the Windows Kerberos package and submit KerbTicketLogon (message type 10). The failure persists when we omit the TGT. In that test, rgbSerialization contains a 32-byte x64 header followed by the 527-byte host/ ticket. ServiceTicket contains the relative offset 32 from the start of the buffer. TicketGrantingTicket is null and its length is zero. ReportResult returns STATUS_INVALID_PARAMETER (0xC000000D), with substatus zero. Password sign-in through the same provider succeeds.

Is KerbTicketLogon supported through GetSerialization for initial sign-in (CPUS_LOGON)? If so, how should the ticket reference in ServiceTicket be represented in rgbSerialization? Is a byte offset from the start of the buffer expected for this message type? A documented packing rule or a Microsoft sample would help us resolve the issue.

Windows for business | Windows Client for IT Pros | User experience | Session connectivity
0 comments No comments

1 answer

Sort by: Most helpful
  1. Ronald Sabiiti 2,970 Reputation points Independent Advisor
    2026-11-25T17:53:22.13+00:00

    Hi There!,

    KERB_TICKET_LOGON is a documented logon structure for LsaLogonUser and requires a host service ticket in ASN.1 format. However, Microsoft does not provide documentation or a sample confirming its use through a Credential Provider for initial sign-in (CPUS_LOGON), including the expected representation of the ServiceTicket field in the serialized buffer.

    Since the same ticket succeeds through LsaLogonUser but fails through GetSerialization with STATUS_INVALID_PARAMETER (0xC000000D), further investigation of the serialization and buffer layout is warranted.

    I recommend verifying:

    • The Kerberos authentication package ID.
    • The host SPN and PAC contents.
    • The packed buffer layout, offsets, and total serialization length.

    References:

    Based on the available documentation, Microsoft does not explicitly confirm support for this specific CPUS_LOGON scenario.

    Hope this helps!

    Ronald.

    Was this answer helpful?


Your answer

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