| |
|
| java.lang.Object org.acegisecurity.providers.ldap.authenticator.AbstractLdapAuthenticator
All known Subclasses: org.acegisecurity.providers.ldap.authenticator.PasswordComparisonAuthenticator, org.acegisecurity.providers.ldap.authenticator.BindAuthenticator,
AbstractLdapAuthenticator | abstract public class AbstractLdapAuthenticator implements LdapAuthenticator,InitializingBean,MessageSourceAware(Code) | | Base class for the authenticator implementations.
author: Luke Taylor version: $Id: AbstractLdapAuthenticator.java 1585 2006-07-20 13:15:55Z carlossg $ |
Field Summary | |
protected MessageSourceAccessor | messages |
messages | protected MessageSourceAccessor messages(Code) | | |
getUserDns | protected List getUserDns(String username)(Code) | | Builds list of possible DNs for the user, worked out from the userDnPatterns property. The
returned value includes the root DN of the provider URL used to configure the
InitialDirContextfactory.
Parameters: username - the user's login name the list of possible DN matches, empty if userDnPatterns wasn't set. |
setMessageSource | public void setMessageSource(MessageSource messageSource)(Code) | | |
setUserAttributes | public void setUserAttributes(String[] userAttributes)(Code) | | Sets the user attributes which will be retrieved from the directory.
Parameters: userAttributes - |
setUserDnPatterns | public void setUserDnPatterns(String[] dnPattern)(Code) | | Sets the pattern which will be used to supply a DN for the user. The pattern should be the name relative
to the root DN. The pattern argument {0} will contain the username. An example would be "cn={0},ou=people".
Parameters: dnPattern - the array of patterns which will be tried when obtaining a usernameto a DN. |
|
|
|