Class ActiveDirectoryAuthenticationProvider
java.lang.Object
org.springframework.security.ldap.authentication.AbstractLdapAuthenticationProvider
com.wavemaker.runtime.security.ad.SpringActiveDirectoryLdapAuthenticationProvider
com.wavemaker.runtime.security.provider.ad.ActiveDirectoryAuthenticationProvider
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.MessageSourceAware,org.springframework.security.authentication.AuthenticationProvider
public class ActiveDirectoryAuthenticationProvider
extends SpringActiveDirectoryLdapAuthenticationProvider
-
Field Summary
Fields inherited from class org.springframework.security.ldap.authentication.AbstractLdapAuthenticationProvider
messages, userDetailsContextMapper -
Constructor Summary
ConstructorsConstructorDescriptionActiveDirectoryAuthenticationProvider(String domain, String url) ActiveDirectoryAuthenticationProvider(String domain, String url, String rootDn) -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<? extends org.springframework.security.core.GrantedAuthority> loadUserAuthorities(org.springframework.ldap.core.DirContextOperations userData, String username, String password) Creates the user authority list from the values of thememberOfattribute obtained from the user's Active Directory entry.voidsetAuthoritiesPopulator(ActiveDirectoryAuthoritiesPopulator authoritiesPopulator) Methods inherited from class com.wavemaker.runtime.security.ad.SpringActiveDirectoryLdapAuthenticationProvider
doAuthentication, getUserSearchPattern, setConvertSubErrorCodesToExceptions, setUserSearchPatternMethods inherited from class org.springframework.security.ldap.authentication.AbstractLdapAuthenticationProvider
authenticate, createSuccessfulAuthentication, getUserDetailsContextMapper, setAuthoritiesMapper, setMessageSource, setUseAuthenticationRequestCredentials, setUserDetailsContextMapper, supports
-
Constructor Details
-
ActiveDirectoryAuthenticationProvider
- Parameters:
domain- the domain name (may be null or empty)url- an LDAP url (or multiple URLs)
-
ActiveDirectoryAuthenticationProvider
- Parameters:
domain- the domain name (may be null or empty)url- an LDAP url (or multiple URLs)rootDn- rootDn to override the computed rootDn in super class.
-
-
Method Details
-
loadUserAuthorities
protected Collection<? extends org.springframework.security.core.GrantedAuthority> loadUserAuthorities(org.springframework.ldap.core.DirContextOperations userData, String username, String password) Creates the user authority list from the values of thememberOfattribute obtained from the user's Active Directory entry.- Overrides:
loadUserAuthoritiesin classSpringActiveDirectoryLdapAuthenticationProvider
-
getAuthoritiesPopulator
-
setAuthoritiesPopulator
-