public class ActiveDirectorySecurityRealm
extends hudson.security.AbstractPasswordBasedSecurityRealm
SecurityRealm that talks to Active Directory.| Modifier and Type | Class and Description |
|---|---|
static class |
ActiveDirectorySecurityRealm.DesciprotrImpl |
| Modifier and Type | Field and Description |
|---|---|
String |
bindName
If non-null, use this name and password to bind to LDAP to obtain the DN
of the user trying to login.
|
hudson.util.Secret |
bindPassword |
String |
domain
Active directory domain name to authenticate against.
|
static String |
DOMAIN_CONTROLLERS
Deprecated.
as of 1.28
Use the UI field.
|
static boolean |
FORCE_LDAPS
Instead of LDAP+TLS upgrade, start right away with LDAPS.
|
String |
server
If non-null, Jenkins will try to connect at this server at the first priority, before falling back to
discovered DNS servers.
|
String |
site
Active directory site (which specifies the physical concentration of the
servers), if any.
|
| Constructor and Description |
|---|
ActiveDirectorySecurityRealm(String domain,
String site,
String bindName,
String bindPassword,
String server) |
| Modifier and Type | Method and Description |
|---|---|
protected org.springframework.security.core.userdetails.UserDetails |
authenticate(String username,
String password) |
hudson.security.SecurityRealm.SecurityComponents |
createSecurityComponents() |
void |
doAuthTest(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
String username,
String password)
Authentication test.
|
AbstractActiveDirectoryAuthenticationProvider |
getAuthenticationProvider()
Interface that actually talks to Active Directory.
|
ActiveDirectorySecurityRealm.DesciprotrImpl |
getDescriptor() |
hudson.security.GroupDetails |
loadGroupByGroupname(String groupname) |
org.springframework.security.core.userdetails.UserDetails |
loadUserByUsername(String username) |
createCliAuthenticator, doAuthenticateall, allowsSignup, canLogOut, commenceSignup, createFilter, doCaptcha, doLogout, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getCommonFilters, getLoginUrl, getPostLogOutUrl, getSecurityComponents, setCaptchaSupport, validateCaptchapublic final String domain
When this plugin is used on Windows, this field is null, and we use ADSI and ADO through com4j to perform authentication.
OTOH, when this plugin runs on non-Windows, this field must be non-null, and we'll use LDAP for authentication.
public final String site
On Windows, I'm assuming ADSI takes care of everything automatically.
public final String bindName
public final hudson.util.Secret bindPassword
public final String server
public static String DOMAIN_CONTROLLERS
public static boolean FORCE_LDAPS
public hudson.security.SecurityRealm.SecurityComponents createSecurityComponents()
createSecurityComponents in class hudson.security.AbstractPasswordBasedSecurityRealmpublic ActiveDirectorySecurityRealm.DesciprotrImpl getDescriptor()
getDescriptor in interface hudson.model.Describable<hudson.security.SecurityRealm>getDescriptor in class hudson.security.SecurityRealmpublic void doAuthTest(org.kohsuke.stapler.StaplerRequest req,
org.kohsuke.stapler.StaplerResponse rsp,
@QueryParameter
String username,
@QueryParameter
String password)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionpublic hudson.security.GroupDetails loadGroupByGroupname(String groupname) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadGroupByGroupname in class hudson.security.AbstractPasswordBasedSecurityRealmorg.springframework.security.core.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionpublic AbstractActiveDirectoryAuthenticationProvider getAuthenticationProvider()
public org.springframework.security.core.userdetails.UserDetails loadUserByUsername(String username) throws org.springframework.security.core.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername in interface org.springframework.security.core.userdetails.UserDetailsServiceloadUserByUsername in class hudson.security.AbstractPasswordBasedSecurityRealmorg.springframework.security.core.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionprotected org.springframework.security.core.userdetails.UserDetails authenticate(String username, String password) throws org.springframework.security.core.AuthenticationException
authenticate in class hudson.security.AbstractPasswordBasedSecurityRealmorg.springframework.security.core.AuthenticationExceptionCopyright © 2004-2014 Hudson. All Rights Reserved.