Added guest account support to the CIFS server. Refactored authenticator code and moved

common code down into the base class.
Added configuration value to control if unknown users should be mapped to the guest account.
Fixed a couple of uncaught access denied exceptions in the CIFS protocol handler.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2317 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gary Spencer
2006-02-07 20:04:16 +00:00
parent 5ea6e3d551
commit cc503b2ac8
5 changed files with 325 additions and 172 deletions

View File

@@ -4241,6 +4241,14 @@ public class NTProtocolHandler extends CoreProtocolHandler
m_sess.sendResponseSMB(outPkt);
}
catch (AccessDeniedException ex)
{
// Not allowed to access the file/folder
m_sess.sendErrorResponseSMB(SMBStatus.NTAccessDenied, SMBStatus.DOSAccessDenied, SMBStatus.ErrDos);
return;
}
catch (FileNotFoundException ex)
{
@@ -4439,6 +4447,14 @@ public class NTProtocolHandler extends CoreProtocolHandler
m_sess.sendResponseSMB(outPkt);
}
catch (AccessDeniedException ex)
{
// Not allowed to access the file/folder
m_sess.sendErrorResponseSMB(SMBStatus.NTAccessDenied, SMBStatus.DOSAccessDenied, SMBStatus.ErrDos);
return;
}
catch (FileNotFoundException ex)
{