浏览代码

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: