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 java.lang.String |
NTLMAuthorityAdministrator |
static java.lang.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(java.lang.String userName,
char[] password)
Authenticate
|
boolean |
exists(java.lang.String userName)
Check if the user exists
|
java.lang.String |
getMD4HashedPassword(java.lang.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(java.lang.String auth)
Allow authenticated users with no alfresco person record to logon with guest access
|
void |
setDomain(java.lang.String domain)
Set the domain to authenticate against
|
void |
setGuestAccess(java.lang.String guest)
Allow guest access
|
void |
setJCEProvider(java.lang.String providerClass)
Set the JCE provider
|
void |
setNullDomainUseAnyServer(java.lang.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(java.lang.String protoOrder)
Set the protocol order for passthru connections
|
void |
setServers(java.lang.String servers)
Set the server(s) to authenticate against
|
void |
setSessionTimeout(java.lang.String sessTmo)
Set the authentication session timeout, in seconds
|
void |
setUseLocalServer(java.lang.String useLocal)
Use the local server as the authentication server
|
authenticate, clearCurrentSecurityContext, getAllowGuestLogin, getCurrentAuthentication, getCurrentUserName, getDefaultAdministratorUserNames, getDefaultGuestUserNames, getGuestUserName, getGuestUserName, getNodeService, getPersonService, getSystemUserName, getSystemUserName, getTransactionService, getUserDetails, getUserDomain, guestUserAuthenticationAllowed, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, setAllowGuestLogin, setAuthenticationContext, setCurrentAuthentication, setCurrentUser, setCurrentUser, setDefaultAdministratorUserNameList, setDefaultAdministratorUserNames, setDefaultGuestUserNameList, setDefaultGuestUserNames, setGuestUserAsCurrentUser, setNodeService, setPersonService, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setTransactionService, setUserDetails, setUserRegistrySynchronizerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitauthenticate, getDefaultAdministratorUserNames, getDefaultGuestUserNames, guestUserAuthenticationAllowed, setCurrentUser, setCurrentUser, setGuestUserAsCurrentUserclearCurrentSecurityContext, getCurrentAuthentication, getCurrentUserName, getGuestUserName, getGuestUserName, getSystemUserName, getSystemUserName, getUserDomain, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, setCurrentAuthentication, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setUserDetailspublic static final java.lang.String NTLMAuthorityGuest
public static final java.lang.String NTLMAuthorityAdministrator
public NTLMAuthenticationComponentImpl()
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic final boolean allowsGuest()
public void setPassthruServers(org.alfresco.jlan.server.auth.passthru.PassthruServers servers)
servers - a passthru server list, usually created by PassthruServerFactorypublic void setDomain(java.lang.String domain)
domain - Stringpublic void setServers(java.lang.String servers)
servers - Stringpublic void setUseLocalServer(java.lang.String useLocal)
useLocal - Stringpublic void setGuestAccess(java.lang.String guest)
guest - Stringpublic void setAllowAuthUserAsGuest(java.lang.String auth)
auth - Stringpublic void setNullDomainUseAnyServer(java.lang.String nullDomain)
nullDomain - Stringpublic void setJCEProvider(java.lang.String providerClass)
providerClass - Stringpublic void setSessionTimeout(java.lang.String sessTmo)
sessTmo - Stringpublic void setProtocolOrder(java.lang.String protoOrder)
protoOrder - Stringprotected void authenticateImpl(java.lang.String userName,
char[] password)
throws org.alfresco.repo.security.authentication.AuthenticationException
authenticateImpl in class AbstractAuthenticationComponentuserName - Stringpassword - char[]org.alfresco.repo.security.authentication.AuthenticationExceptionpublic net.sf.acegisecurity.Authentication authenticate(net.sf.acegisecurity.Authentication auth)
throws org.alfresco.repo.security.authentication.AuthenticationException
authenticate in interface NLTMAuthenticatortoken - Authenticationorg.alfresco.repo.security.authentication.AuthenticationExceptionpublic NTLMMode getNTLMMode()
getNTLMMode in interface NLTMAuthenticatorpublic java.lang.String getMD4HashedPassword(java.lang.String userName)
getMD4HashedPassword in interface NLTMAuthenticatoruserName - Stringpublic boolean exists(java.lang.String userName)
userName - Stringprotected boolean implementationAllowsGuestLogin()
implementationAllowsGuestLogin in class AbstractAuthenticationComponentCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.