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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionIf non-null, use this name and password to bind to LDAP to obtain the DN of the user trying to login.Domain nameIf non-null, Jenkins will try to connect at this server at the first priority, before falling back to discovered DNS servers.Active directory site (which specifies the physical concentration of the servers), if any.protected TlsConfiguration
Selects the SSL strategy to follow on the TLS connections -
Constructor Summary
ConstructorsConstructorDescriptionActiveDirectoryDomain
(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
Modifier and TypeMethodDescriptionstatic String
Convert empty string to null.getName()
Get the record from a domaingetServersOnCatalog
(String catalog) Get the list of servers which compose theActiveDirectoryDomain.Catalog
TheActiveDirectoryDomain.Catalog
can be gc or ldap.getSite()
protected Object
Methods inherited from class hudson.model.AbstractDescribableImpl
getDescriptor
-
Field Details
-
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
If non-null, Jenkins will try to connect at this server at the first priority, before falling back to discovered DNS servers. -
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
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
-
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.
-
-
Constructor Details
-
Method Details
-
getName
-
getServers
-
getBindName
-
getBindPassword
-
getSite
-
getTlsConfiguration
@Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public TlsConfiguration getTlsConfiguration() -
readResolve
-
getRecordFromDomain
Get the record from a domain- Returns:
- the record of a domain
-
getServersOnCatalog
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
-
fixEmpty
Convert empty string to null.
-