Repository navigation
Fix SSPI acceptor credentials - #857
Tess Gauthier (tgauth) merged 1 commit into
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes the Windows SSPI GSSAPI shim’s handling of GSS_C_NO_CREDENTIAL in gss_accept_sec_context() so that, when GSSAPIStrictAcceptorCheck is disabled, the server can accept contexts using the default inbound acceptor credentials instead of dereferencing a null credential handle.
Changes:
- Detect
acceptor_cred_handle == GSS_C_NO_CREDENTIALand obtain a default inbound SSPI credential handle. - Use the selected credential handle (
defaultvssupplied) when callingAcceptSecurityContext().
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
@microsoft-github-policy-service agree company="The Old Chapel Technology, Ltd" |
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Roland C. Dowdeswell (@elric1), thanks! This looks good. My only suggestion would be to create a helper for this, since it's similarly duplicated for the outbound case on lines 540-546, but I'm also willing to take it as-is.
769bc93 to
8cf5aaa
Compare
|
I've refactored it as you requested. |
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). |
41d8351
into
PowerShell:latestw_all
PR Summary
Fix the Windows SSPI shim when GSSAPIStrictAcceptorCheck is disabled.
PR Context
In that mode sshd passes GSS_C_NO_CREDENTIAL to gss_accept_sec_context(), which should mean "use the default acceptor credential"; the shim instead dereferenced it as a real credential handle.