|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.jlan.server.auth.CifsAuthenticator
org.alfresco.filesys.auth.cifs.CifsAuthenticatorBase
org.alfresco.filesys.auth.cifs.EnterpriseCifsAuthenticator
public class EnterpriseCifsAuthenticator
Enterprise CIFS Authenticator Class
CIFS authenticator that supports NTLMSSP and Kerberos logins.
| Field Summary |
|---|
| Fields inherited from class org.alfresco.filesys.auth.cifs.CifsAuthenticatorBase |
|---|
logger, m_md4Encoder |
| Fields inherited from class org.alfresco.jlan.server.auth.CifsAuthenticator |
|---|
GUEST_USERNAME, m_config, m_random |
| Fields inherited from interface org.alfresco.jlan.server.auth.ICifsAuthenticator |
|---|
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 Summary | |
|---|---|
EnterpriseCifsAuthenticator()
Class constructor |
|
| Method Summary | |
|---|---|
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(javax.security.auth.callback.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 |
setJaasConfigEntryName(java.lang.String jaasConfigEntryName)
Sets the HTTP service login configuration entry name. |
void |
setKerberosDebug(boolean kerberosDebug)
|
void |
setPassword(java.lang.String password)
Sets the HTTP service account password. |
void |
setRealm(java.lang.String realm)
Sets the HTTP service account realm. |
void |
setUseSPNEGO(boolean useSPNEGO)
|
| Methods inherited from class org.alfresco.jlan.server.auth.CifsAuthenticator |
|---|
allowGuest, authenticateShareConnect, authenticateUser, authenticateUserPlainText, closeAuthenticator, convertPassword, generateEncryptedPassword, getAccessMode, getAuthContext, getCIFSConfig, getEnabledDialects, getEncryptor, getGuestUserName, getsecurityConfig, getSecurityMode, getStatusAsString, getUserDetails, hasDebug, hasExtendedSecurity, mapClientAddressToDomain, mapUnknownUserToGuest, setAccessMode, setAllowGuest, setConfig, setDebug, setExtendedSecurity, setGuestUserName, setMapToGuest, setSecurityMode, toString, validatePassword |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EnterpriseCifsAuthenticator()
| Method Detail |
|---|
public void setPassword(java.lang.String password)
password - the password to setpublic void setRealm(java.lang.String realm)
realm - the realm to setpublic void setJaasConfigEntryName(java.lang.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 initialize(org.alfresco.jlan.server.config.ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params)
throws org.alfresco.jlan.server.config.InvalidConfigurationException
initialize in class CifsAuthenticatorBaseconfig - ServerConfigurationparams - ConfigElement
org.alfresco.jlan.server.config.InvalidConfigurationException
public void initialize()
throws org.alfresco.jlan.server.config.InvalidConfigurationException
initialize in class CifsAuthenticatorBaseorg.alfresco.jlan.server.config.InvalidConfigurationException
public void handle(javax.security.auth.callback.Callback[] callbacks)
throws java.io.IOException,
javax.security.auth.callback.UnsupportedCallbackException
handle in interface javax.security.auth.callback.CallbackHandlercallbacks - Callback[]
java.io.IOException
javax.security.auth.callback.UnsupportedCallbackExceptionpublic int getEncryptionKeyLength()
getEncryptionKeyLength in interface org.alfresco.jlan.server.auth.ICifsAuthenticatorgetEncryptionKeyLength in class org.alfresco.jlan.server.auth.CifsAuthenticatorpublic int getServerCapabilities()
getServerCapabilities in interface org.alfresco.jlan.server.auth.ICifsAuthenticatorgetServerCapabilities 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.ICifsAuthenticatorgenerateNegotiateResponse in class org.alfresco.jlan.server.auth.CifsAuthenticatorsess - SMBSrvSessionrespPkt - SMBSrvPacketextendedSecurity - boolean
org.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
processSessionSetup in interface org.alfresco.jlan.server.auth.ICifsAuthenticatorprocessSessionSetup in class org.alfresco.jlan.server.auth.CifsAuthenticatorsess - SMBSrvSessionreqPkt - SMBSrvPacket
org.alfresco.jlan.smb.server.SMBSrvException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||