mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-06-30 18:15:39 +00:00
19977: (RECORD ONLY) Merged PATCHES/V2.2.7 to V2.2 19778: (RECORD ONLY) Incremented version label 19976: Merged PATCHES/V2.2.7 to V2.2 19776: ALF-2011: Audit doesn't take into account CIFS authentication - Now that we've backported the ticket granting auditing, converted the Alfresco CIFS authenticators to use ticket-based authentication, rather than directly manipulating ACEGI - Needs thorough testing with password, NTLM, Passthru and Kerberos 19891: ALF-2011: Audit doesn't take into account CIFS authentication Since each child of the CifsAuthenticator is not a Spring configured bean it has no Transaction interceptor. The Transaction wrapping functionality was added into the CifsAuthenticator.setCurrentUser() to fix a Transaction Synchronization issue after successful authentication of the user. Several little corrections added into the InMemoryTicketComponentImpl to allow "Null user". "Missing ticket for null" exceptions will be thrown instead of the NullPointerException 19903: ALF-2011: Minor cleanup/formatting only 19975: (RECORD ONLY) Merged PATCHES/V2.2.7 to V2.2 19769: ALF-2011: Backported dependencies ALF-2360: Merged V3.1 to PATCHES/V2.2.7 17314: ETHREEOH-3158: Fix RepoServerMgmt to work with external authentication methods - AuthenticationService.getCurrentTicket / getNewTicket now call pre authentication check before issuing a new ticket, thus still allowing ticket enforcement when external authentication is in use. ALF-2361: Merged V3.2 to PATCHES/V2.2.7 17456: Fix for: ETHREEOH-1465: It's impossible to get the login history for a given user (Audit) - all authentication routes (SSO and password) can now audit getting a new ticket for a session. SSO does not authenticate via the alfresco AuthenticationService API - you can now use auditing to track new sessions for users. 19834: (RECORD ONLY) Increment version (from 2.2.7 to 2.2.8) 19833: (RECORD ONLY) Merged PATCHES/V2.2.7 to BRANCHES/V2.2: 19832: Merged BRANCHES/V3.1 to PATCHES/V2.2.7: 17255: Fixed ETHREEOH-3180: Error appears when trying to search resources on Manage Task page 19578: (RECORD ONLY) Merged V3.0 to V2.2 19574: Merged V3.1 to V3.0 19573: Merged V3.2 to V3.1 19539: Merged HEAD to V3.2 19538: Build fix - fix build speed git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@20011 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
120 lines
2.5 KiB
Java
120 lines
2.5 KiB
Java
package org.alfresco.filesys.alfresco;
|
|
|
|
import org.alfresco.jlan.server.auth.ClientInfo;
|
|
import org.alfresco.service.cmr.repository.NodeRef;
|
|
|
|
/*
|
|
* Copyright (C) 2007-2010 Alfresco Software Limited.
|
|
*
|
|
* This file is part of Alfresco
|
|
*
|
|
* Alfresco is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Lesser General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* Alfresco is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
/**
|
|
* Alfresco Client Information Class
|
|
*
|
|
* <p>Contains additional fields used by the Alfresco filesystem drivers.
|
|
*/
|
|
public class AlfrescoClientInfo extends ClientInfo {
|
|
|
|
// Authentication ticket, used for web access without having to re-authenticate
|
|
|
|
private String m_authTicket;
|
|
|
|
// Home folder node
|
|
|
|
private NodeRef m_homeNode;
|
|
|
|
/**
|
|
* Default constructor
|
|
*/
|
|
public AlfrescoClientInfo()
|
|
{
|
|
super("", null);
|
|
}
|
|
|
|
/**
|
|
* Class constructor
|
|
*
|
|
* @param user User name
|
|
* @param pwd Password
|
|
*/
|
|
public AlfrescoClientInfo(String user, byte[] pwd)
|
|
{
|
|
super(user, pwd);
|
|
}
|
|
|
|
/**
|
|
* Check if the client has an authentication ticket
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public final boolean hasAuthenticationTicket()
|
|
{
|
|
return m_authTicket != null ? true : false;
|
|
}
|
|
|
|
/**
|
|
* Return the authentication ticket
|
|
*
|
|
* @return String
|
|
*/
|
|
public final String getAuthenticationTicket()
|
|
{
|
|
return m_authTicket;
|
|
}
|
|
|
|
/**
|
|
* Check if the client has a home folder node
|
|
*
|
|
* @return boolean
|
|
*/
|
|
public final boolean hasHomeFolder()
|
|
{
|
|
return m_homeNode != null ? true : false;
|
|
}
|
|
|
|
/**
|
|
* Return the home folder node
|
|
*
|
|
* @return NodeRef
|
|
*/
|
|
public final NodeRef getHomeFolder()
|
|
{
|
|
return m_homeNode;
|
|
}
|
|
|
|
/**
|
|
* Set the authentication ticket
|
|
*
|
|
* @param ticket String
|
|
*/
|
|
public final void setAuthenticationTicket(String ticket)
|
|
{
|
|
m_authTicket = ticket;
|
|
}
|
|
|
|
/**
|
|
* Set the home folder node
|
|
*
|
|
* @param homeNode NodeRef
|
|
*/
|
|
public final void setHomeFolder(NodeRef homeNode)
|
|
{
|
|
m_homeNode = homeNode;
|
|
}
|
|
|
|
}
|