mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-08-15 03:33:47 +02:00
Win32 authentication: fail authentication if AcceptSecurityContext return SEC_E_INVALID_TOKEN
This commit is contained in:
parent
acf3a99214
commit
c94ea8ad68
1 changed files with 8 additions and 2 deletions
|
@ -67,8 +67,14 @@ namespace SMBLibrary.Server.Win32
|
||||||
}
|
}
|
||||||
|
|
||||||
byte[] messageBytes = message.GetBytes();
|
byte[] messageBytes = message.GetBytes();
|
||||||
bool success = SSPIHelper.AuthenticateType3Message(m_serverContext, messageBytes);
|
try
|
||||||
return success;
|
{
|
||||||
|
return SSPIHelper.AuthenticateType3Message(m_serverContext, messageBytes);
|
||||||
|
}
|
||||||
|
catch (Exception)
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsPasswordEmpty(AuthenticateMessage message)
|
public bool IsPasswordEmpty(AuthenticateMessage message)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue