Skip to content

[JENKINS-73847] [active-directory-plugin] Missing Test Domain button in Windows #664

@jenkins-infra-bot

Description

@jenkins-infra-bot

See

<f:optionalBlock title="${%Specify custom Active Directory domain name}"
inline="true" name="customDomain" checked="${instance.domains!=null}"
help="/plugin/active-directory/help/domain-name-windows.html">
<f:entry field="domains" title="${%Domains}">
<f:repeatable field="domains" add="${%Add Domain}">
<a:blockWrapper>
<br/>
<f:entry title="${%Domain Name}" field="name">
<f:textbox />
</f:entry>
<f:entry title="${%Domain controller}" field="servers">
<f:textbox />
</f:entry>
<f:entry field="site" title="${%Site}">
<f:textbox />
</f:entry>
<f:entry field="bindName" title="${%Bind DN}">
<f:textbox />
</f:entry>
<f:entry field="bindPassword" title="${%Bind Password}">
<f:password />
</f:entry>
</a:blockWrapper>
<div align="right">
<input type="button" value="Delete Domain" class="repeatable-delete" style="margin-left: 1em;" />
</div>
</f:repeatable>
</f:entry>
<st:include page="configAdvanced.jelly" class="${descriptor.clazz}"/>
</f:optionalBlock>
and
public boolean canDoNativeAuth() {
if (!Functions.isWindows()) return false;
try {
ClassFactory.createConnection().dispose();
return true;
} catch (Throwable t) {
if (!WARNED) {
LOGGER.log(Level.INFO,"COM4J isn't working. Falling back to non-native authentication",t);
WARNED = true;
}
return false;
}
}
. This means that on Windows the Test Domain button doesn't show up.

Neither TLS Configuration shows up

Reproduction steps

On Linux

  1. Start Jenkins
  2. Install active-directory-plugin
  3. Go to Manage Jenkins > Security > Security Realm
  4. Select Active directory
  5. Click on Add Domain -> TLS Configuration is there and the button Test Domain shows up and it is clickable

On Windows

  1. Start Jenkins
  2. Install active-directory-plugin
  3. Go to Manage Jenkins > Security > Security Realm
  4. Select Active directory
  5. Select Specify custom Active Directory domain name
  6. Click on Add Domain -> TLS Configuration is not available and the button Test Domain doesn't show up

Originally reported by fcojfernandez, imported from: [active-directory-plugin] Missing Test Domain button in Windows
  • assignee: fbelzunc
  • status: Open
  • priority: Trivial
  • component(s): active-directory-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 2025-12-07
Raw content of original issue

See

<f:optionalBlock title="${%Specify custom Active Directory domain name}"
inline="true" name="customDomain" checked="${instance.domains!=null}"
help="/plugin/active-directory/help/domain-name-windows.html">
<f:entry field="domains" title="${%Domains}">
<f:repeatable field="domains" add="${%Add Domain}">
<a:blockWrapper>
<br/>
<f:entry title="${%Domain Name}" field="name">
<f:textbox />
</f:entry>
<f:entry title="${%Domain controller}" field="servers">
<f:textbox />
</f:entry>
<f:entry field="site" title="${%Site}">
<f:textbox />
</f:entry>
<f:entry field="bindName" title="${%Bind DN}">
<f:textbox />
</f:entry>
<f:entry field="bindPassword" title="${%Bind Password}">
<f:password />
</f:entry>
</a:blockWrapper>
<div align="right">
<input type="button" value="Delete Domain" class="repeatable-delete" style="margin-left: 1em;" />
</div>
</f:repeatable>
</f:entry>
<st:include page="configAdvanced.jelly" class="${descriptor.clazz}"/>
</f:optionalBlock>
and
public boolean canDoNativeAuth() {
if (!Functions.isWindows()) return false;
try {
ClassFactory.createConnection().dispose();
return true;
} catch (Throwable t) {
if (!WARNED) {
LOGGER.log(Level.INFO,"COM4J isn't working. Falling back to non-native authentication",t);
WARNED = true;
}
return false;
}
}
. This means that on Windows the Test Domain button doesn't show up.

Neither TLS Configuration shows up

Reproduction steps

On Linux

  1. Start Jenkins
  2. Install active-directory-plugin
  3. Go to Manage Jenkins > Security > Security Realm
  4. Select Active directory
  5. Click on Add Domain -> TLS Configuration is there and the button Test Domain shows up and it is clickable

On Windows

  1. Start Jenkins
  2. Install active-directory-plugin
  3. Go to Manage Jenkins > Security > Security Realm
  4. Select Active directory
  5. Select Specify custom Active Directory domain name
  6. Click on Add Domain -> TLS Configuration is not available and the button Test Domain doesn't show up
  • environment: Jenkins running on Windows with active-directory plugin

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions