public class ActiveDirectoryUnixAuthenticationProvider extends AbstractActiveDirectoryAuthenticationProvider
AuthenticationProvider with Active Directory, through LDAP.SHOW_USER_NOT_FOUND_EXCEPTION| Constructor and Description |
|---|
ActiveDirectoryUnixAuthenticationProvider(ActiveDirectorySecurityRealm realm) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
canRetrieveUserByName()
Returns true if we can retrieve user just from the name without supplying any credential.
|
hudson.security.GroupDetails |
loadGroupByGroupname(String groupname) |
org.springframework.security.core.userdetails.UserDetails |
retrieveUser(String username,
String password,
String domainName,
List<SocketInfo> ldapServers)
Authenticates and retrieves the user by using the given list of available AD LDAP servers.
|
protected org.springframework.security.core.userdetails.UserDetails |
retrieveUser(String username,
org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication)
Authenticates the user (if
authentication!=null), or retrieve the user name information (otherwise.) |
additionalAuthenticationChecks, loadUserByUsernameafterPropertiesSet, authenticate, createSuccessAuthentication, doAfterPropertiesSet, getPostAuthenticationChecks, getPreAuthenticationChecks, getUserCache, isForcePrincipalAsString, isHideUserNotFoundExceptions, setAuthoritiesMapper, setForcePrincipalAsString, setHideUserNotFoundExceptions, setMessageSource, setPostAuthenticationChecks, setPreAuthenticationChecks, setUserCache, supportspublic ActiveDirectoryUnixAuthenticationProvider(ActiveDirectorySecurityRealm realm)
protected org.springframework.security.core.userdetails.UserDetails retrieveUser(String username, org.springframework.security.authentication.UsernamePasswordAuthenticationToken authentication) throws org.springframework.security.core.AuthenticationException
AbstractActiveDirectoryAuthenticationProviderauthentication!=null), or retrieve the user name information (otherwise.)retrieveUser in class AbstractActiveDirectoryAuthenticationProviderorg.springframework.security.core.AuthenticationExceptionprotected boolean canRetrieveUserByName()
AbstractActiveDirectoryAuthenticationProvidercanRetrieveUserByName in class AbstractActiveDirectoryAuthenticationProviderpublic org.springframework.security.core.userdetails.UserDetails retrieveUser(String username, String password, String domainName, List<SocketInfo> ldapServers)
password - If this is NO_AUTHENTICATION, the authentication is not performed, and just the retrieval
would happen.org.springframework.security.core.userdetails.UsernameNotFoundException - The user didn't exist.public hudson.security.GroupDetails loadGroupByGroupname(String groupname)
Copyright © 2004-2014 Hudson. All Rights Reserved.