[JIRA] (JENKINS-39676) Cannot populate servers via groovy script

2018-11-18 Thread vishwadeep.ban...@macquarie.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Vishwadeep Bansal edited a comment on  JENKINS-39676  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Cannot populate servers via groovy script   
 

  
 
 
 
 

 
 hi @[~fbelzunc]Thanks for the above construct, could you also give an example to use Jenkins internal fallback user for the following construct. I am unable to enable  it  ({{[ActiveDirectoryInternalUsersDatabase|https://javadoc.jenkins.io/plugin/active-directory/hudson/plugins/active_directory/ActiveDirectoryInternalUsersDatabase.html] internalUsersDatabase}})  using the code also there is no example anywhere that I could find.{{[ActiveDirectorySecurityRealm|https://javadoc.jenkins.io/plugin/active-directory/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.html#ActiveDirectorySecurityRealm-java.lang.String-java.util.List-java.lang.String-java.lang.String-java.lang.String-java.lang.String-hudson.plugins.active_directory.GroupLookupStrategy-boolean-java.lang.Boolean-hudson.plugins.active_directory.CacheConfiguration-java.lang.Boolean-hudson.plugins.active_directory.TlsConfiguration-hudson.plugins.active_directory.ActiveDirectoryInternalUsersDatabase-]([String|http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true] domain, [List|http://docs.oracle.com/javase/7/docs/api/java/util/List.html?is-external=true]<[ActiveDirectoryDomain|https://javadoc.jenkins.io/plugin/active-directory/hudson/plugins/active_directory/ActiveDirectoryDomain.html]> domains, [String|http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true] site, [String|http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true] bindName, [String|http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true] bindPassword, [String|http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true] server, [GroupLookupStrategy|https://javadoc.jenkins.io/plugin/active-directory/hudson/plugins/active_directory/GroupLookupStrategy.html] groupLookupStrategy, boolean removeIrrelevantGroups, [Boolean|http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true] customDomain, [CacheConfiguration|https://javadoc.jenkins.io/plugin/active-directory/hudson/plugins/active_directory/CacheConfiguration.html] cache, [Boolean|http://docs.oracle.com/javase/7/docs/api/java/lang/Boolean.html?is-external=true] startTls, hudson.plugins.active_directory.TlsConfiguration tlsConfiguration, [ActiveDirectoryInternalUsersDatabase|https://javadoc.jenkins.io/plugin/active-directory/hudson/plugins/active_directory/ActiveDirectoryInternalUsersDatabase.html] internalUsersDatabase)}}   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  

[JIRA] (JENKINS-39676) Cannot populate servers via groovy script

2018-11-18 Thread vishwadeep.ban...@macquarie.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Vishwadeep Bansal commented on  JENKINS-39676  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Cannot populate servers via groovy script   
 

  
 
 
 
 

 
 hi @Félix Belzunce Arcos Thanks for the above construct, could you also give an example to use Jenkins internal fallback user for the following construct. I am unable to enable it using the code also there is no example anywhere that I could find. ActiveDirectorySecurityRealm([String|http://docs.oracle.com/javase/7/docs/api/java/lang/String.html?is-external=true] domain, List domains, String site, String bindName, String bindPassword, String server, GroupLookupStrategy groupLookupStrategy, boolean removeIrrelevantGroups, Boolean customDomain, CacheConfiguration cache, Boolean startTls, hudson.plugins.active_directory.TlsConfiguration tlsConfiguration, ActiveDirectoryInternalUsersDatabase internalUsersDatabase)   
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-39676) Cannot populate servers via groovy script

2016-12-06 Thread fbelz...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Félix Belzunce Arcos commented on  JENKINS-39676  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Cannot populate servers via groovy script   
 

  
 
 
 
 

 
 Meanwhile this is not released, please migrate to the new Descriptor. 

 

@DataBoundConstructor
// as Java signature, this binding doesn't make sense, so please don't use this constructor
public ActiveDirectorySecurityRealm(String domain, List domains, String site, String bindName,
String bindPassword, String server, GroupLookupStrategy groupLookupStrategy, boolean removeIrrelevantGroups, Boolean customDomain, CacheConfiguration cache) {
 

 

 

import hudson.plugins.active_directory.* 
import jenkins.model.*

def instance = Jenkins.getInstance();
def ActiveDirectoryDomain adDomain = new ActiveDirectoryDomain("Example_Domain_Name_2", "Example_Domain_Controller_2");
def domains = new ArrayList();
domains.add(adDomain);

def securityRealm = new ActiveDirectorySecurityRealm( 
"", 
domains,
"", 
"",
"",  
"", 
GroupLookupStrategy.RECURSIVE,
false,
true,
null)
println(securityRealm.domains)

instance.setSecurityRealm(securityRealm) 
instance.save()
 

  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
   

[JIRA] (JENKINS-39676) Cannot populate servers via groovy script

2016-11-17 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon commented on  JENKINS-39676  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Cannot populate servers via groovy script   
 

  
 
 
 
 

 
 Code changed in jenkins User: Félix Belzunce Arcos Path: src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java http://jenkins-ci.org/commit/active-directory-plugin/fdb51d74512b4a4b97d11a56857fbf05a3a89fd8 Log: [FIXED JENKINS-39676] Cannot populate servers via groovy script  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-39676) Cannot populate servers via groovy script

2016-11-17 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon resolved as Fixed  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39676  
 
 
  Cannot populate servers via groovy script   
 

  
 
 
 
 

 
Change By: 
 SCM/JIRA link daemon  
 
 
Status: 
 In Progress Resolved  
 
 
Resolution: 
 Fixed  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-39676) Cannot populate servers via groovy script

2016-11-17 Thread scm_issue_l...@java.net (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 SCM/JIRA link daemon commented on  JENKINS-39676  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Cannot populate servers via groovy script   
 

  
 
 
 
 

 
 Code changed in jenkins User: Felix Belzunce Arcos Path: src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java http://jenkins-ci.org/commit/active-directory-plugin/67186c85e27f077a745f0e9df21d488f57a63037 Log: Merge pull request #55 from fbelzunc/JENKINS-39676 [FIXED JENKINS-39676] Cannot populate servers via groovy script Compare: https://github.com/jenkinsci/active-directory-plugin/compare/8675b696e46b...67186c85e27f  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-39676) Cannot populate servers via groovy script

2016-11-14 Thread fbelz...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Félix Belzunce Arcos updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39676  
 
 
  Cannot populate servers via groovy script   
 

  
 
 
 
 

 
Change By: 
 Félix Belzunce Arcos  
 
 
URL: 
 https://github.com/jenkinsci/active-directory-plugin/pull/55  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-39676) Cannot populate servers via groovy script

2016-11-14 Thread fbelz...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Félix Belzunce Arcos updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39676  
 
 
  Cannot populate servers via groovy script   
 

  
 
 
 
 

 
Change By: 
 Félix Belzunce Arcos  
 
 
Priority: 
 Major Minor  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-39676) Cannot populate servers via groovy script

2016-11-14 Thread fbelz...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Félix Belzunce Arcos commented on  JENKINS-39676  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
  Re: Cannot populate servers via groovy script   
 

  
 
 
 
 

 
 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 

 

public ActiveDirectorySecurityRealm(String domain, List domains, String site, String bindName,
String bindPassword, String server, GroupLookupStrategy groupLookupStrategy, boolean removeIrrelevantGroups, Boolean customDomain, CacheConfiguration cache) {
 

  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-39676) Cannot populate servers via groovy script

2016-11-14 Thread fbelz...@gmail.com (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Félix Belzunce Arcos started work on  JENKINS-39676  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
Change By: 
 Félix Belzunce Arcos  
 
 
Status: 
 Open In Progress  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-39676) Cannot populate servers via groovy script

2016-11-11 Thread s...@ganeti.pl (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sebastian Maj updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39676  
 
 
  Cannot populate servers via groovy script   
 

  
 
 
 
 

 
Change By: 
 Sebastian Maj  
 
 
Environment: 
 ava Centos 7.2java -1.8.0-openjdk-1.8.0.111-1.b15.el7_2jenkins-2.19.2-1.1Active Directory plugin 2.0  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-39676) Cannot populate servers via groovy script

2016-11-11 Thread s...@ganeti.pl (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sebastian Maj updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39676  
 
 
  Cannot populate servers via groovy script   
 

  
 
 
 
 

 
Change By: 
 Sebastian Maj  
 
 
Environment: 
 ava-1.8.0-openjdk-1.8.0.111-1.b15.el7_2 jenkins-2.19.2-1.1Active Directory plugin 2.0  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[JIRA] (JENKINS-39676) Cannot populate servers via groovy script

2016-11-11 Thread s...@ganeti.pl (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sebastian Maj created an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39676  
 
 
  Cannot populate servers via groovy script   
 

  
 
 
 
 

 
Issue Type: 
  Bug  
 
 
Assignee: 
 Félix Belzunce Arcos  
 
 
Components: 
 active-directory-plugin  
 
 
Created: 
 2016/Nov/11 6:12 PM  
 
 
Environment: 
 jenkins-2.19.2-1.1  Active Directory plugin 2.0  
 
 
Priority: 
  Critical  
 
 
Reporter: 
 Sebastian Maj  
 

  
 
 
 
 

 
 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 = null 
adrealm = 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.   
 

  
 
 
 
 

 
 
 
   

[JIRA] (JENKINS-39676) Cannot populate servers via groovy script

2016-11-11 Thread s...@ganeti.pl (JIRA)
Title: Message Title


 
 
 
 

 
 
 

 
   
 Sebastian Maj updated an issue  
 

  
 
 
 
 

 
 
  
 
 
 
 

 
 Jenkins /  JENKINS-39676  
 
 
  Cannot populate servers via groovy script   
 

  
 
 
 
 

 
Change By: 
 Sebastian Maj  
 
 
Priority: 
 Critical Major  
 

  
 
 
 
 

 
 
 

 
 
 Add Comment  
 

  
 

  
 
 
 
  
 

  
 
 
 
 

 
 This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)  
 
 

 
   
 

  
 

  
 

   





-- 
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.