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

@@ -1451,13 +1451,15 @@ public class ServerConfiguration
else
throw new AlfrescoRuntimeException("Invalid authenticator type, " + authType);
// Get the allow guest setting
// Get the allow guest and map unknown user to guest settings
boolean allowGuest = authElem.getChild("allowGuest") != null ? true : false;
boolean mapGuest = authElem.getChild("mapUnknownUserToGuest") != null ? true : false;
// Initialize and set the authenticator class
setAuthenticator(auth, authElem, allowGuest);
auth.setMapToGuest( mapGuest);
}
// Add the users