public class DefaultAuthenticator extends CifsAuthenticator
Default authenticator class.
The default authenticator implementation enables user level security mode and allows any user to connect to the server.
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 |
|---|
DefaultAuthenticator()
Class constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
authenticateShareConnect(ClientInfo client,
SharedDevice share,
java.lang.String pwd,
SrvSession sess)
Allow any user to access the server
|
int |
authenticateUser(ClientInfo client,
SrvSession sess,
int alg)
Allow any user to access the server.
|
byte[] |
getChallengeKey(SrvSession sess)
The default authenticator does not use encrypted passwords.
|
allowGuest, authenticateUserPlainText, closeAuthenticator, convertPassword, doGuestLogon, generateEncryptedPassword, generateNegotiateResponse, getAccessMode, getAuthContext, getCIFSConfig, getEnabledDialects, getEncryptionKeyLength, getEncryptor, getGuestUserName, getsecurityConfig, getSecurityMode, getServerCapabilities, getStatusAsString, getUserDetails, hasDebug, hasExtendedSecurity, hasSessionCleanup, initialize, initialize, mapClientAddressToDomain, mapUnknownUserToGuest, processSessionSetup, setAccessMode, setAllowGuest, setConfig, setCurrentUser, setDebug, setExtendedSecurity, setGuestUserName, setMapToGuest, setSecurityMode, setSessionCleanup, toString, validatePasswordpublic int authenticateShareConnect(ClientInfo client, SharedDevice share, java.lang.String pwd, SrvSession sess)
authenticateShareConnect in interface ICifsAuthenticatorauthenticateShareConnect in class CifsAuthenticatorclient - Client details.share - Shared device the user is connecting to.pwd - Share level password.sess - Server sessionpublic int authenticateUser(ClientInfo client, SrvSession sess, int alg)
authenticateUser in interface ICifsAuthenticatorauthenticateUser in class CifsAuthenticatorclient - Client details.sess - Server sessionalg - Encryption algorithmpublic byte[] getChallengeKey(SrvSession sess)
sess - SrvSessionCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.