public class ActiveDirectoryDomain extends hudson.model.AbstractDescribableImpl<ActiveDirectoryDomain> implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
ActiveDirectoryDomain.Catalog |
static class |
ActiveDirectoryDomain.DescriptorImpl |
| 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 |
name
Domain name
|
String |
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.
|
| Constructor and Description |
|---|
ActiveDirectoryDomain(String name,
String servers) |
ActiveDirectoryDomain(String name,
String servers,
String site,
String bindName,
String bindPassword) |
| Modifier and Type | Method and Description |
|---|---|
DirContext |
createDNSLookupContext()
Creates
DirContext for accesssing DNS. |
static String |
fixEmpty(String s)
Convert empty string to null.
|
String |
getBindName() |
hudson.util.Secret |
getBindPassword() |
String |
getName() |
Attribute |
getRecordFromDomain()
Get the record from a domain
|
String |
getServers() |
Attribute |
getServersOnCatalog(String catalog)
Get the list of servers which compose the
ActiveDirectoryDomain.Catalog
The ActiveDirectoryDomain.Catalog can be gc or ldap. |
String |
getSite() |
public String name
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 String servers
public String site
On Windows, I'm assuming ADSI takes care of everything automatically.
public String bindName
public hudson.util.Secret bindPassword
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getName()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getServers()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getBindName()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public hudson.util.Secret getBindPassword()
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public String getSite()
public Attribute getRecordFromDomain()
public DirContext createDNSLookupContext() throws NamingException
DirContext for accesssing DNS.NamingExceptionpublic Attribute getServersOnCatalog(String catalog)
ActiveDirectoryDomain.Catalog
The ActiveDirectoryDomain.Catalog can be gc or ldap.ActiveDirectoryDomain.CatalogCopyright © 2016–2018. All rights reserved.