Преглед изворни кода

IntegratedNTLMAuthenticationProvider: GetContextAttribute will now return a valid access token

Tal Aloni пре 8 година
родитељ
комит
6cd06fb41f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      SMBLibrary/Win32/IntegratedNTLMAuthenticationProvider.cs

+ 1 - 1
SMBLibrary/Win32/IntegratedNTLMAuthenticationProvider.cs

@@ -146,7 +146,7 @@ namespace SMBLibrary.Win32.Security
                 switch (attributeName)
                 {
                     case GSSAttributeName.AccessToken:
-                        return authContext.ServerContext;
+                        return SSPIHelper.GetAccessToken(authContext.ServerContext);
                     case GSSAttributeName.IsGuest:
                         return authContext.IsGuest;
                     case GSSAttributeName.MachineName: