public class EnterpriseCifsAuthenticator extends CifsAuthenticator implements CallbackHandler
CIFS authenticator that supports NTLMSSP and Kerberos logins.
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(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(ServerConfiguration config,
org.springframework.extensions.config.ConfigElement params)
Initialize the authenticator
|
void |
processSessionSetup(SMBSrvSession sess,
SMBSrvPacket reqPkt)
Process the CIFS session setup request packet and build the session setup response
|
allowGuest, authenticateShareConnect, authenticateUser, authenticateUserPlainText, closeAuthenticator, convertPassword, doGuestLogon, generateEncryptedPassword, getAccessMode, getAuthContext, getCIFSConfig, getEnabledDialects, getEncryptor, getGuestUserName, getsecurityConfig, getSecurityMode, getStatusAsString, getUserDetails, hasDebug, hasExtendedSecurity, hasSessionCleanup, initialize, mapClientAddressToDomain, mapUnknownUserToGuest, setAccessMode, setAllowGuest, setConfig, setCurrentUser, setDebug, setExtendedSecurity, setGuestUserName, setMapToGuest, setSecurityMode, setSessionCleanup, toString, validatePassword
public EnterpriseCifsAuthenticator()
public void initialize(ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws InvalidConfigurationException
initialize
in class CifsAuthenticator
config
- ServerConfigurationparams
- ConfigElementInvalidConfigurationException
public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException
handle
in interface CallbackHandler
callbacks
- Callback[]IOException
UnsupportedCallbackException
public int getEncryptionKeyLength()
getEncryptionKeyLength
in interface ICifsAuthenticator
getEncryptionKeyLength
in class CifsAuthenticator
public int getServerCapabilities()
getServerCapabilities
in interface ICifsAuthenticator
getServerCapabilities
in class CifsAuthenticator
public void generateNegotiateResponse(SMBSrvSession sess, SMBSrvPacket respPkt, boolean extendedSecurity) throws AuthenticatorException
generateNegotiateResponse
in interface ICifsAuthenticator
generateNegotiateResponse
in class CifsAuthenticator
sess
- SMBSrvSessionrespPkt
- SMBSrvPacketextendedSecurity
- booleanAuthenticatorException
public void processSessionSetup(SMBSrvSession sess, SMBSrvPacket reqPkt) throws SMBSrvException
processSessionSetup
in interface ICifsAuthenticator
processSessionSetup
in class CifsAuthenticator
sess
- SMBSrvSessionreqPkt
- SMBSrvPacketSMBSrvException
Copyright © 2005–2018 Alfresco Software. All rights reserved.