From 6cd06fb41fabc5294932d6b636c64c5b51fbe6d6 Mon Sep 17 00:00:00 2001 From: Tal Aloni Date: Sun, 19 Feb 2017 13:53:06 +0200 Subject: [PATCH] IntegratedNTLMAuthenticationProvider: GetContextAttribute will now return a valid access token --- SMBLibrary/Win32/IntegratedNTLMAuthenticationProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SMBLibrary/Win32/IntegratedNTLMAuthenticationProvider.cs b/SMBLibrary/Win32/IntegratedNTLMAuthenticationProvider.cs index 3fd3d84..36ce1ef 100644 --- a/SMBLibrary/Win32/IntegratedNTLMAuthenticationProvider.cs +++ b/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: