org.alfresco.repo.security.authentication.ldap
Class LDAPAuthenticationComponentImpl
java.lang.Object
org.alfresco.repo.security.authentication.AbstractAuthenticationComponent
org.alfresco.repo.security.authentication.ldap.LDAPAuthenticationComponentImpl
- All Implemented Interfaces:
- ActivateableBean, AuthenticationComponent, AuthenticationContext, org.springframework.beans.factory.InitializingBean
public class LDAPAuthenticationComponentImpl
- extends AbstractAuthenticationComponent
- implements org.springframework.beans.factory.InitializingBean, ActivateableBean
Authenticates a user by LDAP. To convert the user name to an LDAP DN, it uses the fixed format in
userNameFormat if set, or calls the LDAPNameResolver otherwise.
| Methods inherited from class org.alfresco.repo.security.authentication.AbstractAuthenticationComponent |
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, setUserRegistrySynchronizer |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LDAPAuthenticationComponentImpl
public LDAPAuthenticationComponentImpl()
setLDAPInitialDirContextFactory
public void setLDAPInitialDirContextFactory(LDAPInitialDirContextFactory ldapInitialDirContextFactory)
setUserNameFormat
public void setUserNameFormat(java.lang.String userNameFormat)
setLdapNameResolver
public void setLdapNameResolver(LDAPNameResolver ldapNameResolver)
setEscapeCommasInBind
public void setEscapeCommasInBind(boolean escapeCommasInBind)
setEscapeCommasInUid
public void setEscapeCommasInUid(boolean escapeCommasInUid)
setActive
public void setActive(boolean active)
isActive
public boolean isActive()
- Description copied from interface:
ActivateableBean
- Determines whether this bean is active.
- Specified by:
isActive in interface ActivateableBean
- Returns:
true if this bean is active
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
authenticateImpl
protected void authenticateImpl(java.lang.String userName,
char[] password)
throws org.alfresco.repo.security.authentication.AuthenticationException
- Implement the authentication method
- Overrides:
authenticateImpl in class AbstractAuthenticationComponent
- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
implementationAllowsGuestLogin
protected boolean implementationAllowsGuestLogin()
- Specified by:
implementationAllowsGuestLogin in class AbstractAuthenticationComponent
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.