Additional flexibility around session keys #399
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We were able to make progress with the following changes:
What's the problem?
We are unable to implement a simple WinRM (HTTP/SOAP) connection setup using GSS-API Krb5 while simulating the WinRM protocol with Kerberos authentication. When selecting the Kerberos authentication option, PowerShell uses Kerberos directly, not SPNEGO.
The Kerberos.NET code needs to be more flexible when trying/selecting session keys to decrypt GSS-API tokens, and it also needs to relax specific requirements around sequence number validation, because handling can vary by application.
What's the solution?
ApplicationSessionContext needs to keep track of sub session keys as well and try multiple options before giving up, in order to accommodate applications that may misbehave relative to common expectations and specifications.
ApplicationSessionContext should not try to validate that the sequence numbers match.
The provided code can be used to manually test.
What issue is this related to, if any?
The issue is described in #398.