mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user