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
- Start Jenkins
- Install active-directory-plugin
- Go to Manage Jenkins > Security > Security Realm
- Select Active directory
- Click on Add Domain -> TLS Configuration is there and the button Test Domain shows up and it is clickable
On Windows
- Start Jenkins
- Install active-directory-plugin
- Go to Manage Jenkins > Security > Security Realm
- Select Active directory
- Select Specify custom Active Directory domain name
- 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
- Start Jenkins
- Install active-directory-plugin
- Go to Manage Jenkins > Security > Security Realm
- Select Active directory
- Click on Add Domain -> TLS Configuration is there and the button Test Domain shows up and it is clickable
On Windows
- Start Jenkins
- Install active-directory-plugin
- Go to Manage Jenkins > Security > Security Realm
- Select Active directory
- Select Specify custom Active Directory domain name
- 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
See
active-directory-plugin/src/main/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealm/config.jelly
Lines 8 to 37 in fa573e7
active-directory-plugin/src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java
Lines 527 to 540 in fa573e7
Neither TLS Configuration shows up
Reproduction steps
On Linux
On Windows
Originally reported by
fcojfernandez, imported from: [active-directory-plugin] Missing Test Domain button in Windows
Raw content of original issue
Jenkins running on Windows with active-directory plugin