public class ReverseProxySecurityRealm
extends hudson.security.SecurityRealm
| Modifier and Type | Class and Description |
|---|---|
static class |
ReverseProxySecurityRealm.ProxyLDAPDescriptor |
static class |
ReverseProxySecurityRealm.ReverseProxyUserDetailsService |
| Modifier and Type | Field and Description |
|---|---|
org.acegisecurity.GrantedAuthority[] |
authorities
The authorities that are granted to the authenticated user.
|
String |
forwardedUser
The name of the header which the username has to be extracted from.
|
static String |
GROUP_SEARCH
LDAP filter to look for groups by their names.
|
String |
groupSearchBase
This defines the organizational unit that contains groups.
|
String |
groupSearchFilter
Query to locate an entry that identifies the group, given the group name string.
|
String |
headerGroups
Header name of the groups field.
|
String |
headerGroupsDelimiter
Header name of the groups delimiter field.
|
boolean |
inhibitInferRootDN
Allow the rootDN to be inferred? Default is false.
|
String |
managerDN
If non-null, we use this and
managerPassword
when binding to LDAP. |
String |
rootDN
The root DN to connect to.
|
String |
server
LDAP server name(s) separated by spaces, optionally with TCP port number, like "ldap.acme.org"
or "ldap.acme.org:389" and/or with protcol, like "ldap://ldap.acme.org".
|
String |
userSearch
Query to locate an entry that identifies the user, given the user name string.
|
String |
userSearchBase
Specifies the relative DN from
the root DN. |
| Constructor and Description |
|---|
ReverseProxySecurityRealm(String forwardedUser,
String headerGroups,
String headerGroupsDelimiter,
String server,
String rootDN,
boolean inhibitInferRootDN,
String userSearchBase,
String userSearch,
String groupSearchBase,
String groupSearchFilter,
String managerDN,
String managerPassword) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLogOut() |
javax.servlet.Filter |
createFilter(javax.servlet.FilterConfig filterConfig) |
hudson.security.SecurityRealm.SecurityComponents |
createSecurityComponents() |
<T> T |
extractBean(Class<T> type,
org.springframework.web.context.WebApplicationContext appContext) |
String |
getForwardedUser()
Name of the HTTP header to look at.
|
String |
getGroupSearchFilter() |
String |
getHeaderGroups() |
String |
getHeaderGroupsDelimiter() |
String |
getLDAPURL() |
String |
getManagerPassword() |
String |
getServerUrl() |
hudson.security.GroupDetails |
loadGroupByGroupname(String groupname) |
org.acegisecurity.userdetails.UserDetails |
loadUserByUsername(String username) |
static String |
toProviderUrl(String serverUrl,
String rootDN) |
all, allowsSignup, commenceSignup, createCliAuthenticator, doCaptcha, doLogout, findBean, getAuthenticationGatewayUrl, getCaptchaSupport, getCaptchaSupportDescriptors, getDescriptor, getLoginUrl, getPostLogOutUrl, getSecurityComponents, setCaptchaSupport, validateCaptchapublic static String GROUP_SEARCH
public final String server
public final String rootDN
public final boolean inhibitInferRootDN
public final String userSearchBase
the root DN.
This is used to narrow down the search space when doing user search.
Something like "ou=people" but can be empty.public final String userSearch
FilterBasedLdapUserSearchpublic final String groupSearchBase
FilterBasedLdapUserSearchpublic final String groupSearchFilter
GROUP_SEARCHpublic final String managerDN
managerPassword
when binding to LDAP.
This is necessary when LDAP doesn't support anonymous access.public org.acegisecurity.GrantedAuthority[] authorities
public final String forwardedUser
public final String headerGroups
public final String headerGroupsDelimiter
@DataBoundConstructor public ReverseProxySecurityRealm(String forwardedUser, String headerGroups, String headerGroupsDelimiter, String server, String rootDN, boolean inhibitInferRootDN, String userSearchBase, String userSearch, String groupSearchBase, String groupSearchFilter, String managerDN, String managerPassword)
public String getForwardedUser()
public String getHeaderGroups()
public String getHeaderGroupsDelimiter()
public String getServerUrl()
public String getGroupSearchFilter()
public String getManagerPassword()
public String getLDAPURL()
public javax.servlet.Filter createFilter(javax.servlet.FilterConfig filterConfig)
createFilter in class hudson.security.SecurityRealmpublic boolean canLogOut()
canLogOut in class hudson.security.SecurityRealmpublic hudson.security.SecurityRealm.SecurityComponents createSecurityComponents()
createSecurityComponents in class hudson.security.SecurityRealmpublic org.acegisecurity.userdetails.UserDetails loadUserByUsername(String username) throws org.acegisecurity.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername in class hudson.security.SecurityRealmorg.acegisecurity.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionpublic hudson.security.GroupDetails loadGroupByGroupname(String groupname) throws org.acegisecurity.userdetails.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadGroupByGroupname in class hudson.security.SecurityRealmorg.acegisecurity.userdetails.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionpublic <T> T extractBean(Class<T> type, org.springframework.web.context.WebApplicationContext appContext)
Copyright © 2004-2014. All Rights Reserved.