Merged HEAD-BUG-FIX (4.3/Cloud) to HEAD (4.3/Cloud)

63086: Merged V4.2-BUG-FIX (4.2.2) to HEAD-BUG-FIX (Cloud/4.3)
      62850: Merged V4.1-BUG-FIX (4.1.8) to V4.2-BUG-FIX (4.2.2)
         62709: MNT-10644: autoCreatePeopleOnLogin=false allows unauthorized users to log in via CIFS
            Force user creation on CIFS log in only if autoCreatePeopleOnLogin=true. Add unit tests for EnterpriseCifsAuthenticator
   		 and PassthruCifsAuthenticator.
      62968: MNT-10644: autoCreatePeopleOnLogin=false allows unauthorized users to log in via CIFS
         Fix CifsAuthenticatorKerberosTest: to check person existence in V4.2-BUG-FIX RunAsUser is required to be set


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@64265 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2014-03-14 15:49:58 +00:00
parent 6a048b6b85
commit 71324ac54f
6 changed files with 395 additions and 1 deletions

View File

@@ -399,7 +399,7 @@ public abstract class CifsAuthenticatorBase extends CifsAuthenticator implements
if (personName == null)
{
// Force creation of a person if possible
getPersonService().getPerson(userName);
authenticationComponent.setCurrentUser(userName);
personName = getPersonService().getUserIdentifier(userName);
}

View File

@@ -122,6 +122,11 @@ public class PassthruCifsAuthenticator extends CifsAuthenticatorBase implements
m_sessions = new Hashtable<String, PassthruDetails>();
}
public Hashtable<String, PassthruDetails> getSessions()
{
return m_sessions;
}
public void setPassthruServers(PassthruServers servers)
{
m_passthruServers = servers;