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_md4Encoder
GUEST_USERNAME, m_config, m_random
AUTH_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(org.alfresco.jlan.smb.server.SMBSrvSession sess,
org.alfresco.jlan.smb.server.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(org.alfresco.jlan.server.config.ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params)
Initialize the authenticator (via the config service)
|
void |
processSessionSetup(org.alfresco.jlan.smb.server.SMBSrvSession sess,
org.alfresco.jlan.smb.server.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, validateAuthenticationMode
allowGuest, 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, validatePassword
public EnterpriseCifsAuthenticator()
public void setPassword(String password)
password
- the password to setpublic void setRealm(String realm)
realm
- the realm to setpublic void setJaasConfigEntryName(String jaasConfigEntryName)
jaasConfigEntryName
- 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(org.alfresco.jlan.server.config.ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws org.alfresco.jlan.server.config.InvalidConfigurationException
initialize
in class CifsAuthenticatorBase
config
- ServerConfigurationparams
- ConfigElementorg.alfresco.jlan.server.config.InvalidConfigurationException
public void initialize() throws org.alfresco.jlan.server.config.InvalidConfigurationException
initialize
in class CifsAuthenticatorBase
org.alfresco.jlan.server.config.InvalidConfigurationException
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle
in interface CallbackHandler
callbacks
- Callback[]IOException
UnsupportedCallbackException
public int getEncryptionKeyLength()
getEncryptionKeyLength
in interface org.alfresco.jlan.server.auth.ICifsAuthenticator
getEncryptionKeyLength
in class org.alfresco.jlan.server.auth.CifsAuthenticator
public int getServerCapabilities()
getServerCapabilities
in interface org.alfresco.jlan.server.auth.ICifsAuthenticator
getServerCapabilities
in class org.alfresco.jlan.server.auth.CifsAuthenticator
public void generateNegotiateResponse(org.alfresco.jlan.smb.server.SMBSrvSession sess, org.alfresco.jlan.smb.server.SMBSrvPacket respPkt, boolean extendedSecurity) throws org.alfresco.jlan.server.auth.AuthenticatorException
generateNegotiateResponse
in interface org.alfresco.jlan.server.auth.ICifsAuthenticator
generateNegotiateResponse
in class org.alfresco.jlan.server.auth.CifsAuthenticator
sess
- SMBSrvSessionrespPkt
- SMBSrvPacketextendedSecurity
- booleanorg.alfresco.jlan.server.auth.AuthenticatorException
public void processSessionSetup(org.alfresco.jlan.smb.server.SMBSrvSession sess, org.alfresco.jlan.smb.server.SMBSrvPacket reqPkt) throws org.alfresco.jlan.smb.server.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 org.alfresco.jlan.server.auth.ICifsAuthenticator
processSessionSetup
in class org.alfresco.jlan.server.auth.CifsAuthenticator
sess
- SMBSrvSessionreqPkt
- SMBSrvPacketorg.alfresco.jlan.smb.server.SMBSrvException
Copyright © 2005–2017 Alfresco Software. All rights reserved.