public class AlfrescoCifsAuthenticator extends CifsAuthenticatorBase
The Alfresco authenticator implementation enables user level security mode using the Alfresco authentication component.
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.
logger, m_md4Encoder
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 |
---|
AlfrescoCifsAuthenticator()
Default Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
authenticateShareConnect(org.alfresco.jlan.server.auth.ClientInfo client,
org.alfresco.jlan.server.core.SharedDevice share,
String sharePwd,
org.alfresco.jlan.server.SrvSession sess)
Authenticate a connection to a share.
|
int |
authenticateUser(org.alfresco.jlan.server.auth.ClientInfo client,
org.alfresco.jlan.server.SrvSession sess,
int alg)
Authenticate a user
|
org.alfresco.jlan.server.auth.AuthContext |
getAuthContext(org.alfresco.jlan.smb.server.SMBSrvSession sess)
Return an authentication context for the new session
|
protected boolean |
validateAuthenticationMode()
Validate that the authentication component supports the required mode
|
afterPropertiesSet, checkForAdminUserName, destroy, doGuestLogon, doInTransaction, getAuthenticationComponent, getAuthenticationService, getAuthorityService, getHomeFolderForUser, getNodeService, getNTLMAuthenticator, getPersonService, initialize, initialize, isActive, mapUserNameToPerson, setActive, setAuthenticationComponent, setAuthenticationService, setAuthorityService, setCurrentUser, setDiskInterface, setNodeService, setPersonService, setTransactionService
allowGuest, authenticateUserPlainText, closeAuthenticator, convertPassword, generateEncryptedPassword, generateNegotiateResponse, getAccessMode, getCIFSConfig, getEnabledDialects, getEncryptionKeyLength, getEncryptor, getGuestUserName, getsecurityConfig, getSecurityMode, getServerCapabilities, getStatusAsString, getUserDetails, hasDebug, hasExtendedSecurity, hasSessionCleanup, mapClientAddressToDomain, mapUnknownUserToGuest, processSessionSetup, setAccessMode, setAllowGuest, setConfig, setDebug, setExtendedSecurity, setGuestUserName, setMapToGuest, setSecurityMode, setSessionCleanup, toString, validatePassword
public AlfrescoCifsAuthenticator()
Default to user mode security with encrypted password support.
protected boolean validateAuthenticationMode()
validateAuthenticationMode
in class CifsAuthenticatorBase
public int authenticateUser(org.alfresco.jlan.server.auth.ClientInfo client, org.alfresco.jlan.server.SrvSession sess, int alg)
authenticateUser
in interface org.alfresco.jlan.server.auth.ICifsAuthenticator
authenticateUser
in class org.alfresco.jlan.server.auth.CifsAuthenticator
client
- Client informationsess
- Server sessionalg
- Encryption algorithmpublic int authenticateShareConnect(org.alfresco.jlan.server.auth.ClientInfo client, org.alfresco.jlan.server.core.SharedDevice share, String sharePwd, org.alfresco.jlan.server.SrvSession sess)
authenticateShareConnect
in interface org.alfresco.jlan.server.auth.ICifsAuthenticator
authenticateShareConnect
in class org.alfresco.jlan.server.auth.CifsAuthenticator
client
- User/client details from the tree connect request.share
- Shared device the client wants to connect to.sharePwd
- Share password.sess
- Server session.public org.alfresco.jlan.server.auth.AuthContext getAuthContext(org.alfresco.jlan.smb.server.SMBSrvSession sess)
getAuthContext
in class org.alfresco.jlan.server.auth.CifsAuthenticator
Copyright © 2005–2017 Alfresco Software. All rights reserved.