public class PassthruCifsAuthenticator extends CifsAuthenticatorBase implements SessionListener
Authenticate users accessing the CIFS server by validating the user against a domain controller or other server on the network.
| Modifier and Type | Field and Description |
|---|---|
static int |
DefaultSessionTmo |
static int |
MaxCheckInterval |
static int |
MaxSessionTmo |
static int |
MinCheckInterval |
static int |
MinSessionTmo |
static long |
PassthruKeepAliveInterval |
m_md4EncoderGUEST_USERNAME, m_config, m_randomAUTH_ACCDISABLED, AUTH_ALLOW, AUTH_BADPASSWORD, AUTH_BADUSER, AUTH_DISALLOW, AUTH_GUEST, AUTH_PASSEXPIRED, LANMAN, NoAccess, NTLM1, NTLM2, ReadOnly, SHARE_MODE, STANDARD_CHALLENGE_LEN, STANDARD_PASSWORD_LEN, USER_MODE, Writeable| Constructor and Description |
|---|
PassthruCifsAuthenticator()
Passthru Authenticator Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
authenticateShareConnect(ClientInfo client,
SharedDevice share,
String sharePwd,
SrvSession sess)
Authenticate the connection to a particular share, called when the SMB server is in share
security mode
|
int |
authenticateUser(ClientInfo client,
SrvSession sess,
int alg)
Authenticate a session setup by a user
|
void |
closeAuthenticator()
Close the authenticator, perform cleanup
|
void |
generateNegotiateResponse(SMBSrvSession sess,
SMBSrvPacket respPkt,
boolean extendedSecurity)
Generate the CIFS negotiate response packet, the authenticator should add authentication specific fields
to the response.
|
AuthContext |
getAuthContext(SMBSrvSession sess)
Return an authentication context for the new session
|
int |
getServerCapabilities()
Return the server capability flags
|
Hashtable<String,PassthruDetails> |
getSessions() |
void |
initialize(ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params)
Initialize the authenticator via the config service
|
void |
processAlfrescoSessionSetup(SMBSrvSession sess,
SMBSrvPacket reqPkt)
Process the CIFS session setup request packet and build the session setup response
|
void |
processSessionSetup(SMBSrvSession sess,
SMBSrvPacket reqPkt)
Process the CIFS session setup request packet and build the session setup response.
|
void |
sessionClosed(SrvSession sess)
SMB server session closed notification
|
void |
sessionCreated(SrvSession sess)
SMB server session created notification
|
void |
sessionLoggedOn(SrvSession sess)
User successfully logged on notification
|
void |
setPassthruServers(PassthruServers servers) |
protected boolean |
validateAuthenticationMode()
Validate that the authentication component supports the required mode.
|
afterPropertiesSet, checkForAdminUserName, destroy, doGuestLogon, doInTransaction, getAuthenticationComponent, getAuthenticationService, getAuthorityService, getHomeFolderForUser, getNodeService, getNTLMAuthenticator, getPersonService, initialize, isActive, mapUserNameToPerson, setActive, setAuthenticationComponent, setAuthenticationService, setAuthorityService, setCurrentUser, setDiskInterface, setNodeService, setPersonService, setTransactionServiceallowGuest, authenticateUserPlainText, convertPassword, generateEncryptedPassword, getAccessMode, getCIFSConfig, getEnabledDialects, getEncryptionKeyLength, getEncryptor, getGuestUserName, getsecurityConfig, getSecurityMode, getStatusAsString, getUserDetails, hasDebug, hasExtendedSecurity, hasSessionCleanup, mapClientAddressToDomain, mapUnknownUserToGuest, setAccessMode, setAllowGuest, setConfig, setDebug, setExtendedSecurity, setGuestUserName, setMapToGuest, setSecurityMode, setSessionCleanup, toString, validatePasswordpublic static final int DefaultSessionTmo
public static final int MinSessionTmo
public static final int MaxSessionTmo
public static final int MinCheckInterval
public static final int MaxCheckInterval
public static final long PassthruKeepAliveInterval
public PassthruCifsAuthenticator()
Default to user mode security with encrypted password support.
public Hashtable<String,PassthruDetails> getSessions()
public void setPassthruServers(PassthruServers servers)
public int authenticateShareConnect(ClientInfo client, SharedDevice share, String sharePwd, SrvSession sess)
authenticateShareConnect in interface ICifsAuthenticatorauthenticateShareConnect in class CifsAuthenticatorclient - ClientInfoshare - SharedDevicesharePwd - Stringsess - SrvSessionpublic int authenticateUser(ClientInfo client, SrvSession sess, int alg)
authenticateUser in interface ICifsAuthenticatorauthenticateUser in class CifsAuthenticatorclient - ClientInfosess - SrvSessionalg - intpublic AuthContext getAuthContext(SMBSrvSession sess)
getAuthContext in class CifsAuthenticatorpublic void generateNegotiateResponse(SMBSrvSession sess, SMBSrvPacket respPkt, boolean extendedSecurity) throws AuthenticatorException
generateNegotiateResponse in interface ICifsAuthenticatorgenerateNegotiateResponse in class CifsAuthenticatorsess - SMBSrvSessionrespPkt - SMBSrvPacketextendedSecurity - booleanAuthenticatorExceptionpublic void processSessionSetup(SMBSrvSession sess, SMBSrvPacket reqPkt) throws SMBSrvException
This is the boundary between alfresco and JLAN. So is responsible for logging and ensuring that the exceptions are correct for JLAN.
processSessionSetup in interface ICifsAuthenticatorprocessSessionSetup in class CifsAuthenticatorsess - SMBSrvSessionreqPkt - SMBSrvPacketSMBSrvExceptionpublic void processAlfrescoSessionSetup(SMBSrvSession sess, SMBSrvPacket reqPkt) throws SMBSrvException
sess - SMBSrvSessionreqPkt - SMBSrvPacketSMBSrvExceptionprotected boolean validateAuthenticationMode()
CifsAuthenticatorBasevalidateAuthenticationMode in class CifsAuthenticatorBasepublic void initialize(ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws InvalidConfigurationException
initialize in class CifsAuthenticatorBaseconfig - ServerConfigurationparams - ConfigElementInvalidConfigurationExceptionpublic int getServerCapabilities()
getServerCapabilities in interface ICifsAuthenticatorgetServerCapabilities in class CifsAuthenticatorpublic void closeAuthenticator()
closeAuthenticator in interface ICifsAuthenticatorcloseAuthenticator in class CifsAuthenticatorpublic void sessionClosed(SrvSession sess)
sessionClosed in interface SessionListenersess - SrvSessionpublic void sessionCreated(SrvSession sess)
sessionCreated in interface SessionListenersess - SrvSessionpublic void sessionLoggedOn(SrvSession sess)
sessionLoggedOn in interface SessionListenersess - SrvSessionCopyright © 2005–2014 Alfresco Software. All rights reserved.