Package hudson.plugins.active_directory
Class ActiveDirectoryDomain
- java.lang.Object
-
- hudson.model.AbstractDescribableImpl<ActiveDirectoryDomain>
-
- hudson.plugins.active_directory.ActiveDirectoryDomain
-
- All Implemented Interfaces:
Describable<ActiveDirectoryDomain>
,Serializable
public class ActiveDirectoryDomain extends AbstractDescribableImpl<ActiveDirectoryDomain> implements Serializable
Represents an Active Directory domain with its Domain Controllers Easily allows you to match Domains with Domains Controllers- Since:
- 2.0
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ActiveDirectoryDomain.Catalog
static class
ActiveDirectoryDomain.DescriptorImpl
-
Field Summary
Fields Modifier and Type Field 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.Secret
bindPassword
String
name
Domain nameString
servers
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.protected TlsConfiguration
tlsConfiguration
Selects the SSL strategy to follow on the TLS connections
-
Constructor Summary
Constructors Constructor Description ActiveDirectoryDomain(String name, String servers)
ActiveDirectoryDomain(String name, String servers, String site, String bindName, String bindPassword)
Deprecated.ActiveDirectoryDomain(String name, String servers, String site, String bindName, String bindPassword, TlsConfiguration tlsConfiguration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
fixEmpty(String s)
Convert empty string to null.String
getBindName()
Secret
getBindPassword()
String
getName()
Attribute
getRecordFromDomain()
Get the record from a domainString
getServers()
Attribute
getServersOnCatalog(String catalog)
Get the list of servers which compose theActiveDirectoryDomain.Catalog
TheActiveDirectoryDomain.Catalog
can be gc or ldap.String
getSite()
TlsConfiguration
getTlsConfiguration()
-
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
-
-
-
Field Detail
-
name
public String name
Domain nameWhen 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.
-
servers
public String servers
If non-null, Jenkins will try to connect at this server at the first priority, before falling back to discovered DNS servers.
-
site
public String site
Active directory site (which specifies the physical concentration of the servers), if any. If the value is non-null, we'll only contact servers in this site.On Windows, I'm assuming ADSI takes care of everything automatically.
-
bindName
public String bindName
If non-null, use this name and password to bind to LDAP to obtain the DN of the user trying to login. This is unnecessary in a single-domain mode, where we can just bind with the user name and password provided during the login, but in a forest mode, without some known credential, we cannot figure out which domain in the forest the user belongs to.
-
bindPassword
public Secret bindPassword
-
tlsConfiguration
protected TlsConfiguration tlsConfiguration
Selects the SSL strategy to follow on the TLS connectionsEven 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.
-
-
Method Detail
-
getName
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getName()
-
getServers
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getServers()
-
getBindName
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getBindName()
-
getBindPassword
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public Secret getBindPassword()
-
getSite
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getSite()
-
getTlsConfiguration
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public TlsConfiguration getTlsConfiguration()
-
getRecordFromDomain
public Attribute getRecordFromDomain()
Get the record from a domain- Returns:
- the record of a domain
-
getServersOnCatalog
public Attribute getServersOnCatalog(String catalog)
Get the list of servers which compose theActiveDirectoryDomain.Catalog
TheActiveDirectoryDomain.Catalog
can be gc or ldap.- Returns:
- the list of servers in the selected
ActiveDirectoryDomain.Catalog
-
-