mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-04-30 10:47:48 +02:00
IndependentNTLMAuthenticationProvider: Set KeyExchange NTLM flag if client request it
This commit is contained in:
parent
6bb9aa323b
commit
5d9fa0fb6e
1 changed files with 6 additions and 0 deletions
|
@ -105,6 +105,12 @@ namespace SMBLibrary.Authentication.NTLM
|
|||
challengeMessage.NegotiateFlags |= NegotiateFlags.Use128BitEncryption;
|
||||
}
|
||||
}
|
||||
|
||||
if ((negotiateMessage.NegotiateFlags & NegotiateFlags.KeyExchange) > 0)
|
||||
{
|
||||
challengeMessage.NegotiateFlags |= NegotiateFlags.KeyExchange;
|
||||
}
|
||||
|
||||
challengeMessage.TargetName = Environment.MachineName;
|
||||
challengeMessage.ServerChallenge = serverChallenge;
|
||||
challengeMessage.TargetInfo = AVPairUtils.GetAVPairSequence(Environment.MachineName, Environment.MachineName);
|
||||
|
|
Loading…
Add table
Reference in a new issue