public class NTLMAuthenticationComponentImpl extends AbstractAuthenticationComponent implements NLTMAuthenticator, org.springframework.beans.factory.InitializingBean
Provides authentication using passthru to a Windows server(s)/domain controller(s) using the accounts defined on the passthru server to validate users.
AuthenticationComponent.UserNameValidationMode
Modifier and Type | Field and Description |
---|---|
static String |
NTLMAuthorityAdministrator |
static String |
NTLMAuthorityGuest |
Constructor and Description |
---|
NTLMAuthenticationComponentImpl()
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
boolean |
allowsGuest()
Determine if guest logons are allowed
|
net.sf.acegisecurity.Authentication |
authenticate(net.sf.acegisecurity.Authentication auth)
Authenticate using a token
|
protected void |
authenticateImpl(String userName,
char[] password)
Authenticate
|
boolean |
exists(String userName)
Check if the user exists
|
String |
getMD4HashedPassword(String userName)
Get the MD4 password hash, as required by NTLM based authentication methods.
|
NTLMMode |
getNTLMMode()
Get the enum that describes NTLM integration
|
protected boolean |
implementationAllowsGuestLogin() |
void |
setAllowAuthUserAsGuest(String auth)
Allow authenticated users with no alfresco person record to logon with guest access
|
void |
setDomain(String domain)
Set the domain to authenticate against
|
void |
setGuestAccess(String guest)
Allow guest access
|
void |
setJCEProvider(String providerClass)
Set the JCE provider
|
void |
setNullDomainUseAnyServer(String nullDomain)
Allow null domain passthru logons to use the first available passthru server
|
void |
setPassthruServers(org.alfresco.jlan.server.auth.passthru.PassthruServers servers)
Directly sets the passthru server list.
|
void |
setProtocolOrder(String protoOrder)
Set the protocol order for passthru connections
|
void |
setServers(String servers)
Set the server(s) to authenticate against
|
void |
setSessionTimeout(String sessTmo)
Set the authentication session timeout, in seconds
|
void |
setUseLocalServer(String useLocal)
Use the local server as the authentication server
|
authenticate, clearCurrentSecurityContext, getAllowGuestLogin, getCurrentAuthentication, getCurrentUserName, getDefaultAdministratorUserNames, getDefaultGuestUserNames, getGuestUserName, getGuestUserName, getNodeService, getNumberFailedAuthentications, getNumberSuccessfulAuthentications, getPersonService, getSystemUserName, getSystemUserName, getTransactionService, getUserDetails, getUserDomain, guestUserAuthenticationAllowed, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, onAuthenticate, onFail, setAllowGuestLogin, setAuthenticationContext, setCurrentAuthentication, setCurrentUser, setCurrentUser, setDefaultAdministratorUserNameList, setDefaultAdministratorUserNames, setDefaultGuestUserNameList, setDefaultGuestUserNames, setGuestUserAsCurrentUser, setNodeService, setPersonService, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setTransactionService, setUserDetails, setUserRegistrySynchronizer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticate, getDefaultAdministratorUserNames, getDefaultGuestUserNames, guestUserAuthenticationAllowed, setCurrentUser, setCurrentUser, setGuestUserAsCurrentUser
clearCurrentSecurityContext, getCurrentAuthentication, getCurrentUserName, getGuestUserName, getGuestUserName, getSystemUserName, getSystemUserName, getUserDomain, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, setCurrentAuthentication, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setUserDetails
public static final String NTLMAuthorityGuest
public static final String NTLMAuthorityAdministrator
public NTLMAuthenticationComponentImpl()
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public final boolean allowsGuest()
public void setPassthruServers(org.alfresco.jlan.server.auth.passthru.PassthruServers servers)
servers
- a passthru server list, usually created by PassthruServerFactory
public void setDomain(String domain)
domain
- Stringpublic void setServers(String servers)
servers
- Stringpublic void setUseLocalServer(String useLocal)
useLocal
- Stringpublic void setGuestAccess(String guest)
guest
- Stringpublic void setAllowAuthUserAsGuest(String auth)
auth
- Stringpublic void setNullDomainUseAnyServer(String nullDomain)
nullDomain
- Stringpublic void setJCEProvider(String providerClass)
providerClass
- Stringpublic void setSessionTimeout(String sessTmo)
sessTmo
- Stringpublic void setProtocolOrder(String protoOrder)
protoOrder
- Stringprotected void authenticateImpl(String userName, char[] password) throws org.alfresco.repo.security.authentication.AuthenticationException
authenticateImpl
in class AbstractAuthenticationComponent
userName
- Stringpassword
- char[]org.alfresco.repo.security.authentication.AuthenticationException
public net.sf.acegisecurity.Authentication authenticate(net.sf.acegisecurity.Authentication auth) throws org.alfresco.repo.security.authentication.AuthenticationException
authenticate
in interface NLTMAuthenticator
auth
- Authenticationorg.alfresco.repo.security.authentication.AuthenticationException
public NTLMMode getNTLMMode()
getNTLMMode
in interface NLTMAuthenticator
public String getMD4HashedPassword(String userName)
getMD4HashedPassword
in interface NLTMAuthenticator
userName
- Stringpublic boolean exists(String userName)
userName
- Stringprotected boolean implementationAllowsGuestLogin()
implementationAllowsGuestLogin
in class AbstractAuthenticationComponent
Copyright © 2005–2017 Alfresco Software. All rights reserved.