public class EnterpriseCifsAuthenticator extends CifsAuthenticatorBase implements CallbackHandler
CIFS authenticator that supports NTLMSSP and Kerberos logins.
| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
logger |
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 |
|---|
EnterpriseCifsAuthenticator()
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
generateNegotiateResponse(SMBSrvSession sess,
SMBSrvPacket respPkt,
boolean extendedSecurity)
Generate the CIFS negotiate response packet, the authenticator should add authentication specific fields
to the response.
|
int |
getEncryptionKeyLength()
Return the encryption key/challenge length
|
int |
getServerCapabilities()
Return the server capability flags
|
void |
handle(Callback[] callbacks)
JAAS callback handler
|
void |
initialize()
Initialize the authenticator (after properties have been set)
|
void |
initialize(ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params)
Initialize the authenticator (via the config service)
|
void |
processSessionSetup(SMBSrvSession sess,
SMBSrvPacket reqPkt)
Process the CIFS session setup request packet and build the session setup response.
|
void |
setDisableNTLM(boolean disableNTLM) |
void |
setDisallowNTLMv1(boolean disallowNTLMv1) |
void |
setEnableTicketCracking(boolean enaTktCracking)
Enable Kerbeors ticket cracking code that is required for Java5
|
void |
setJaasConfigEntryName(String jaasConfigEntryName)
Sets the HTTP service login configuration entry name.
|
void |
setKerberosDebug(boolean kerberosDebug) |
void |
setPassword(String password)
Sets the HTTP service account password.
|
void |
setRealm(String realm)
Sets the HTTP service account realm.
|
void |
setStripKerberosUsernameSuffix(boolean stripKerberosUsernameSuffix) |
void |
setUseSPNEGO(boolean useSPNEGO) |
afterPropertiesSet, checkForAdminUserName, destroy, doGuestLogon, doInTransaction, getAuthenticationComponent, getAuthenticationService, getAuthorityService, getHomeFolderForUser, getNodeService, getNTLMAuthenticator, getPersonService, isActive, mapUserNameToPerson, setActive, setAuthenticationComponent, setAuthenticationService, setAuthorityService, setCurrentUser, setDiskInterface, setNodeService, setPersonService, setTransactionService, validateAuthenticationModeallowGuest, authenticateShareConnect, authenticateUser, authenticateUserPlainText, closeAuthenticator, convertPassword, generateEncryptedPassword, getAccessMode, getAuthContext, getCIFSConfig, getEnabledDialects, getEncryptor, getGuestUserName, getsecurityConfig, getSecurityMode, getStatusAsString, getUserDetails, hasDebug, hasExtendedSecurity, hasSessionCleanup, mapClientAddressToDomain, mapUnknownUserToGuest, setAccessMode, setAllowGuest, setConfig, setDebug, setExtendedSecurity, setGuestUserName, setMapToGuest, setSecurityMode, setSessionCleanup, toString, validatePasswordpublic EnterpriseCifsAuthenticator()
public void setPassword(String password)
password - the password to setpublic void setRealm(String realm)
realm - the realm to setpublic void setJaasConfigEntryName(String jaasConfigEntryName)
loginEntryName - the loginEntryName to setpublic void setKerberosDebug(boolean kerberosDebug)
public void setDisableNTLM(boolean disableNTLM)
public void setUseSPNEGO(boolean useSPNEGO)
public void setDisallowNTLMv1(boolean disallowNTLMv1)
public void setStripKerberosUsernameSuffix(boolean stripKerberosUsernameSuffix)
public void setEnableTicketCracking(boolean enaTktCracking)
enaTktCracking - booleanpublic void initialize(ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws InvalidConfigurationException
initialize in class CifsAuthenticatorBaseconfig - ServerConfigurationparams - ConfigElementInvalidConfigurationExceptionpublic void initialize()
throws InvalidConfigurationException
initialize in class CifsAuthenticatorBaseInvalidConfigurationExceptionpublic void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle in interface CallbackHandlercallbacks - Callback[]IOExceptionUnsupportedCallbackExceptionpublic int getEncryptionKeyLength()
getEncryptionKeyLength in interface ICifsAuthenticatorgetEncryptionKeyLength in class CifsAuthenticatorpublic int getServerCapabilities()
getServerCapabilities in interface ICifsAuthenticatorgetServerCapabilities 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 - SMBSrvPacketSMBSrvExceptionCopyright © 2005–2014 Alfresco Software. All rights reserved.