public class ActiveDirectoryUnixAuthenticationProvider extends AbstractActiveDirectoryAuthenticationProvider
AuthenticationProvider with Active Directory, through LDAP.| Modifier and Type | Field and Description |
|---|---|
protected static String |
DN_FORMATTED |
protected hudson.plugins.active_directory.TlsConfiguration |
tlsConfiguration
Deprecated.
|
| Constructor and Description |
|---|
ActiveDirectoryUnixAuthenticationProvider(ActiveDirectorySecurityRealm realm) |
| Modifier and Type | Method and Description |
|---|---|
GroupDetails |
loadGroupByGroupname(String groupname) |
org.acegisecurity.userdetails.UserDetails |
retrieveUser(String username,
String password,
ActiveDirectoryDomain domain,
List<SocketInfo> ldapServers)
Authenticates and retrieves the user by using the given list of available AD LDAP servers.
|
protected org.acegisecurity.userdetails.UserDetails |
retrieveUser(String username,
org.acegisecurity.providers.UsernamePasswordAuthenticationToken authentication)
Authenticates the user (if
authentication!=null), or retrieve the user name information (otherwise.) |
additionalAuthenticationChecks, loadUserByUsernameprotected static final String DN_FORMATTED
@Deprecated protected hudson.plugins.active_directory.TlsConfiguration tlsConfiguration
Even if we are not using any of the TLS ports (3269/636) the plugin will try to establish a TLS channel using startTLS. Because of this, we need to be able to specify the SSL strategy on the plugin
For the moment there are two possible values: trustAllCertificates and trustStore.
public ActiveDirectoryUnixAuthenticationProvider(ActiveDirectorySecurityRealm realm)
protected org.acegisecurity.userdetails.UserDetails retrieveUser(String username, org.acegisecurity.providers.UsernamePasswordAuthenticationToken authentication) throws org.acegisecurity.AuthenticationException
AbstractActiveDirectoryAuthenticationProviderauthentication!=null), or retrieve the user name information (otherwise.)retrieveUser in class AbstractActiveDirectoryAuthenticationProviderorg.acegisecurity.AuthenticationExceptionpublic org.acegisecurity.userdetails.UserDetails retrieveUser(String username, String password, ActiveDirectoryDomain domain, List<SocketInfo> ldapServers) throws NamingException
password - If this is NO_AUTHENTICATION, the authentication is not performed, and just the retrieval
would happen.org.acegisecurity.userdetails.UsernameNotFoundException - The user didn't exist.NamingExceptionpublic GroupDetails loadGroupByGroupname(String groupname)
Copyright © 2016–2020. All rights reserved.