소스 검색

Client: NTLMAuthenticationHelper: Bugfix: The generic GSSAPI header was not appended to negTokenInit

Tal Aloni 7 년 전
부모
커밋
2b3cee14a5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      SMBLibrary/Client/Helpers/NTLMAuthenticationHelper.cs

+ 1 - 1
SMBLibrary/Client/Helpers/NTLMAuthenticationHelper.cs

@@ -67,7 +67,7 @@ namespace SMBLibrary.Client
                 outputToken.MechanismTypeList = new List<byte[]>();
                 outputToken.MechanismTypeList.Add(GSSProvider.NTLMSSPIdentifier);
                 outputToken.MechanismToken = negotiateMessage.GetBytes();
-                return outputToken.GetBytes();
+                return SimpleProtectedNegotiationToken.GetTokenBytes(outputToken);
             }
             else
             {