public class EnterpriseCifsAuthenticator extends CifsAuthenticator implements javax.security.auth.callback.CallbackHandler
CIFS authenticator that supports NTLMSSP and Kerberos logins.
GUEST_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(javax.security.auth.callback.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, validatePasswordpublic EnterpriseCifsAuthenticator()
public void initialize(ServerConfiguration config, org.springframework.extensions.config.ConfigElement params) throws InvalidConfigurationException
initialize in class CifsAuthenticatorconfig - ServerConfigurationparams - ConfigElementInvalidConfigurationExceptionpublic 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.IOExceptionjavax.security.auth.callback.UnsupportedCallbackExceptionpublic 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
processSessionSetup in interface ICifsAuthenticatorprocessSessionSetup in class CifsAuthenticatorsess - SMBSrvSessionreqPkt - SMBSrvPacketSMBSrvExceptionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.