IntegratedNTLMAuthenticationProvider: GetContextAttribute will now return a valid access token

This commit is contained in:
Tal Aloni 2017-02-19 13:53:06 +02:00
parent b433950077
commit 6cd06fb41f

View file

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