Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32033

Support for multiple domain controllers

    Details

    • Similar Issues:

      Description

      In the case of LDAP plugin it's possible to provide list of multiple ldap servers separated by space, see for example JENKINS-16443

      But in the case of Active directory plugin it doesn't work as entering the following in the server entry: dc3.intra.net:3268 10.1.1.11:3268 dc2.intra.net:3268
      leads to:

      java.lang.NumberFormatException: For input string: "3268 10.1.1.11:3268 dc2.intra.net:3268"
              at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
              at java.lang.Integer.parseInt(Integer.java:580)
              at java.lang.Integer.parseInt(Integer.java:615)
              at com.sun.jndi.toolkit.url.Uri.parse(Uri.java:232)
              at com.sun.jndi.toolkit.url.Uri.init(Uri.java:138)
              at com.sun.jndi.ldap.LdapURL.<init>(LdapURL.java:82)
              at com.sun.jndi.ldap.LdapCtxFactory.getUsingURL(LdapCtxFactory.java:163)
              at com.sun.jndi.ldap.LdapCtxFactory.getLdapCtxInstance(LdapCtxFactory.java:151)
              at hudson.plugins.active_directory.ActiveDirectorySecurityRealm$DescriptorImpl.bind(ActiveDirectorySecurityRealm.java:484)
              at hudson.plugins.active_directory.ActiveDirectorySecurityRealm$DescriptorImpl.bind(ActiveDirectorySecurityRealm.java:434)
              at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:273)
              at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:219)
              at hudson.plugins.active_directory.ActiveDirectoryUnixAuthenticationProvider.retrieveUser(ActiveDirectoryUnixAuthenticationProvider.java:163)
              at hudson.plugins.active_directory.ActiveDirectorySecurityRealm.authenticate(ActiveDirectorySecurityRealm.java:666)
              ...

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            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/fbbb85c066db5d0a976d37349176c586ea67d0f9
            Log:
            JENKINS-32033 Support for multiple domain controllers

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - 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/fbbb85c066db5d0a976d37349176c586ea67d0f9 Log: JENKINS-32033 Support for multiple domain controllers
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            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/d6bb427d070f35acf376f73de041d02df3be2996
            Log:
            Merge pull request #41 from fbelzunc/JENKINS-32033

            [FIXED JENKINS-32033] Support for multiple domain controllers

            Compare: https://github.com/jenkinsci/active-directory-plugin/compare/2e79649b3119...d6bb427d070f

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - 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/d6bb427d070f35acf376f73de041d02df3be2996 Log: Merge pull request #41 from fbelzunc/ JENKINS-32033 [FIXED JENKINS-32033] Support for multiple domain controllers Compare: https://github.com/jenkinsci/active-directory-plugin/compare/2e79649b3119...d6bb427d070f
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Felix Belzunce Arcos
            Path:
            pom.xml
            src/main/java/hudson/plugins/active_directory/ActiveDirectoryDomain.java
            src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java
            src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java
            src/main/resources/hudson/plugins/active_directory/ActiveDirectory.groovy
            src/main/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealm/config.jelly
            src/main/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealm/configAdvanced.jelly
            src/main/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealm/help-domains.html
            src/main/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealm/help-server.html
            src/main/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealm/help-testDomain.html
            src/main/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealm/help-testDomainControllers.html
            src/test/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest.java
            src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveSingleDomain.zip
            src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveSingleDomainSingleServer.zip
            src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveSingleDomainWithTwoServers.zip
            src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveTwoDomainsWithSpaceAfterComma.zip
            src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveTwoDomainsWithSpaceAfterCommaAndSingleServer.zip
            src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveTwoDomainsWithSpaceAfterCommaAndTwoServers.zip
            src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveTwoDomainsWithoutSpaceAfterComma.zip
            src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveTwoDomainsWithoutSpaceAfterCommaAndSingleServer.zip
            src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveTwoDomainsWithoutSpaceAfterCommaAndTwoServers.zip
            http://jenkins-ci.org/commit/active-directory-plugin/1ea9f9785a6f9e6193e62f6fe67a569a5a50092b
            Log:
            JENKINS-32033 Better Multiple Domains support (#49)

            JENKINS-32033 Better Multiple Domains support

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Felix Belzunce Arcos Path: pom.xml src/main/java/hudson/plugins/active_directory/ActiveDirectoryDomain.java src/main/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealm.java src/main/java/hudson/plugins/active_directory/ActiveDirectoryUnixAuthenticationProvider.java src/main/resources/hudson/plugins/active_directory/ActiveDirectory.groovy src/main/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealm/config.jelly src/main/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealm/configAdvanced.jelly src/main/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealm/help-domains.html src/main/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealm/help-server.html src/main/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealm/help-testDomain.html src/main/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealm/help-testDomainControllers.html src/test/java/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest.java src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveSingleDomain.zip src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveSingleDomainSingleServer.zip src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveSingleDomainWithTwoServers.zip src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveTwoDomainsWithSpaceAfterComma.zip src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveTwoDomainsWithSpaceAfterCommaAndSingleServer.zip src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveTwoDomainsWithSpaceAfterCommaAndTwoServers.zip src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveTwoDomainsWithoutSpaceAfterComma.zip src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveTwoDomainsWithoutSpaceAfterCommaAndSingleServer.zip src/test/resources/hudson/plugins/active_directory/ActiveDirectorySecurityRealmTest/testReadResolveTwoDomainsWithoutSpaceAfterCommaAndTwoServers.zip http://jenkins-ci.org/commit/active-directory-plugin/1ea9f9785a6f9e6193e62f6fe67a569a5a50092b Log: JENKINS-32033 Better Multiple Domains support (#49) JENKINS-32033 Better Multiple Domains support

              People

              • Assignee:
                fbelzunc Félix Belzunce Arcos
                Reporter:
                hostalp Petr H
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: