Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
Centos 7.2
java-1.8.0-openjdk-1.8.0.111-1.b15.el7_2
jenkins-2.19.2-1.1
Active Directory plugin 2.0
Description
Using groovy script like this:
import jenkins.model.*
import hudson.security.*
import hudson.plugins.active_directory.*def instance = Jenkins.getInstance()
String domain = 'mydomain.com'
String site = null
String server = 'my_ldap_server'
String bindName = null
String bindPassword = nulladrealm = new ActiveDirectorySecurityRealm(domain, site, bindName, bindPassword, server)
instance.setSecurityRealm(adrealm)instance.save()
field domain controllers remains empty. This was working in previous version of plugin and it's somehow related to multiple domain support.
Thanks for submitting this bug.
I am reducing the priority to Minor since using the latest constructor should work. What is failing is the backward compatibility