mirror of
https://github.com/TalAloni/SMBLibrary.git
synced 2025-04-29 18:27:48 +02:00
SMBServer: Write logoff events to log
This commit is contained in:
parent
a0dc03de30
commit
b7946bafca
2 changed files with 2 additions and 0 deletions
|
@ -145,6 +145,7 @@ namespace SMBLibrary.Server
|
|||
}
|
||||
else if (command is LogoffAndXRequest)
|
||||
{
|
||||
state.LogToServer(Severity.Information, "Logoff: User '{0}' logged off.", session.UserName);
|
||||
m_securityProvider.DeleteSecurityContext(ref session.SecurityContext.AuthenticationContext);
|
||||
state.RemoveSession(header.UID);
|
||||
return new LogoffAndXResponse();
|
||||
|
|
|
@ -108,6 +108,7 @@ namespace SMBLibrary.Server
|
|||
}
|
||||
else if (command is LogoffRequest)
|
||||
{
|
||||
state.LogToServer(Severity.Information, "Logoff: User '{0}' logged off.", session.UserName);
|
||||
m_securityProvider.DeleteSecurityContext(ref session.SecurityContext.AuthenticationContext);
|
||||
state.RemoveSession(command.Header.SessionID);
|
||||
return new LogoffResponse();
|
||||
|
|
Loading…
Add table
Reference in a new issue