public class LocalAuthenticator extends CifsAuthenticator
Local Authenticator Class.
The local authenticator implementation enables user level security mode and uses the user account list that is part of the server configuration to determine if a user is allowed to access the server/share.
Note: Switching off encrypted password support will cause later NT4 service pack releases and Win2000 to refuse to connect to the server without a registry update on the client.
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 |
|---|
LocalAuthenticator()
Local Authenticator Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
authenticateShareConnect(ClientInfo client,
SharedDevice share,
java.lang.String pwd,
SrvSession sess)
Authenticate the connection to a share
|
int |
authenticateUser(ClientInfo client,
SrvSession sess,
int alg)
Authenticate a user
|
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 LocalAuthenticator()
Default to user mode security with encrypted password support.
public int authenticateShareConnect(ClientInfo client, SharedDevice share, java.lang.String pwd, SrvSession sess)
authenticateShareConnect in interface ICifsAuthenticatorauthenticateShareConnect in class CifsAuthenticatorclient - ClienInfoshare - SharedDevicepwd - Share level password.sess - Server sessionpublic int authenticateUser(ClientInfo client, SrvSession sess, int alg)
authenticateUser in interface ICifsAuthenticatorauthenticateUser in class CifsAuthenticatorclient - Client informationsess - Server sessionalg - Encryption algorithmCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.