public class LDAPConfiguration extends hudson.model.AbstractDescribableImpl<LDAPConfiguration>
| Modifier and Type | Class and Description |
|---|---|
static class |
LDAPConfiguration.LDAPConfigurationDescriptor |
| Modifier and Type | Field and Description |
|---|---|
static String |
SECURITY_REALM_LDAPBIND_GROOVY |
| Constructor and Description |
|---|
LDAPConfiguration(String server,
String rootDN,
boolean inhibitInferRootDN,
String managerDN,
hudson.util.Secret managerPasswordSecret) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.context.WebApplicationContext |
createApplicationContext(LDAPSecurityRealm realm,
boolean usePotentialUserProvidedBinding) |
String |
getDisplayNameAttributeName() |
LDAPSecurityRealm.EnvironmentProperty[] |
getEnvironmentProperties() |
Map<String,String> |
getExtraEnvVars() |
LDAPGroupMembershipStrategy |
getGroupMembershipStrategy() |
String |
getGroupSearchBase()
This defines the organizational unit that contains groups.
|
String |
getGroupSearchFilter()
Query to locate an entry that identifies the group, given the group name string.
|
String |
getId() |
static File |
getLdapBindOverrideFile(jenkins.model.Jenkins jenkins) |
org.acegisecurity.ldap.LdapTemplate |
getLdapTemplate() |
String |
getLDAPURL() |
String |
getMailAddressAttributeName() |
String |
getManagerDN()
If non-null, we use this and
getManagerPassword()
when binding to LDAP. |
String |
getManagerPassword()
Password used to first bind to LDAP.
|
hudson.util.Secret |
getManagerPasswordSecret() |
String |
getRootDN()
The root DN to connect to.
|
String |
getServer()
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 |
getServerUrl() |
String |
getUserSearch()
Query to locate an entry that identifies the user, given the user name string.
|
String |
getUserSearchBase()
Specifies the relative DN from
the root DN. |
boolean |
isConfiguration(String id) |
boolean |
isInhibitInferRootDN()
Allow the rootDN to be inferred? Default is false.
|
void |
setDisplayNameAttributeName(String displayNameAttributeName) |
void |
setEnvironmentProperties(LDAPSecurityRealm.EnvironmentProperty[] environmentProperties) |
void |
setExtraEnvVars(Map<String,String> extraEnvVars) |
void |
setGroupMembershipStrategy(LDAPGroupMembershipStrategy groupMembershipStrategy) |
void |
setGroupSearchBase(String groupSearchBase)
This defines the organizational unit that contains groups.
|
void |
setGroupSearchFilter(String groupSearchFilter)
Query to locate an entry that identifies the group, given the group name string.
|
void |
setMailAddressAttributeName(String mailAddressAttributeName) |
void |
setUserSearch(String userSearch)
Query to locate an entry that identifies the user, given the user name string.
|
void |
setUserSearchBase(String userSearchBase)
Specifies the relative DN from
the root DN. |
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static final String SECURITY_REALM_LDAPBIND_GROOVY
public String getServer()
public String getServerUrl()
public String getRootDN()
public String getLDAPURL()
public boolean isInhibitInferRootDN()
public String getUserSearchBase()
the root DN.
This is used to narrow down the search space when doing user search.
Something like "ou=people" but can be empty.@DataBoundSetter public void setUserSearchBase(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 String getUserSearch()
FilterBasedLdapUserSearch@DataBoundSetter public void setUserSearch(String userSearch)
FilterBasedLdapUserSearchpublic String getGroupSearchBase()
FilterBasedLdapUserSearch@DataBoundSetter public void setGroupSearchBase(String groupSearchBase)
FilterBasedLdapUserSearchpublic String getGroupSearchFilter()
LDAPSecurityRealm.GROUP_SEARCH@DataBoundSetter public void setGroupSearchFilter(String groupSearchFilter)
LDAPSecurityRealm.GROUP_SEARCHpublic LDAPGroupMembershipStrategy getGroupMembershipStrategy()
@DataBoundSetter public void setGroupMembershipStrategy(LDAPGroupMembershipStrategy groupMembershipStrategy)
public String getManagerDN()
getManagerPassword()
when binding to LDAP.
This is necessary when LDAP doesn't support anonymous access.public String getManagerPassword()
public hudson.util.Secret getManagerPasswordSecret()
public String getDisplayNameAttributeName()
@DataBoundSetter public void setDisplayNameAttributeName(String displayNameAttributeName)
public String getMailAddressAttributeName()
@DataBoundSetter public void setMailAddressAttributeName(String mailAddressAttributeName)
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public void setExtraEnvVars(Map<String,String> extraEnvVars)
public LDAPSecurityRealm.EnvironmentProperty[] getEnvironmentProperties()
@DataBoundSetter public void setEnvironmentProperties(LDAPSecurityRealm.EnvironmentProperty[] environmentProperties)
public String getId()
public boolean isConfiguration(String id)
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public org.springframework.web.context.WebApplicationContext createApplicationContext(LDAPSecurityRealm realm, boolean usePotentialUserProvidedBinding)
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public org.acegisecurity.ldap.LdapTemplate getLdapTemplate()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public static File getLdapBindOverrideFile(jenkins.model.Jenkins jenkins)
Copyright © 2016–2017. All rights reserved.