Преглед на файлове

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
             {