When assigning a 2nd domain, connection cannot be made and times out with an error if a port is specified. If I remove the port it connects fine. However after saving, the plugin automatically puts the default port 3268 at the end. It is written to the config.xml and if a restart of the jenkins service happens, once more users cannot login.

       

      So this prevents anyone from the 2nd domain to login to the Jenkins server which is blocking us from joining the two user forests.

          [JENKINS-46943] Default port preventing users to login

          Félix Belzunce Arcos added a comment - - edited

          caolandix I am not able to reproduce this problem. Please, clarify the exact steps I should perform to reproduce this problem. Once you do that I will be able to fix this problem - if it is really a problem.

          Félix Belzunce Arcos added a comment - - edited caolandix I am not able to reproduce this problem. Please, clarify the exact steps I should perform to reproduce this problem. Once you do that I will be able to fix this problem - if it is really a problem.

          James Nord added a comment -

          fbelzunc 

          in the global AD config add a domain
          enter `bogus2.example.com` as the domain controller
          save

          go back to the config

           

          note that the domain controller is now `bogus2.example.com:3268`

          This is due to https://github.com/jenkinsci/active-directory-plugin/blob/a5f34e9c93e6461390c912d40725b2758c3c487a/src/main/java/hudson/plugins/active_directory/ActiveDirectoryDomain.java#L157-L159  which adds a port of 3268 if not specified.

          Note that the port does not get added in the validation logic https://github.com/jenkinsci/active-directory-plugin/blob/a5f34e9c93e6461390c912d40725b2758c3c487a/src/main/java/hudson/plugins/active_directory/ActiveDirectoryDomain.java#L279-L389 

          James Nord added a comment - fbelzunc   in the global AD config add a domain enter `bogus2.example.com` as the domain controller save go back to the config   note that the domain controller is now `bogus2.example.com:3268` This is due to https://github.com/jenkinsci/active-directory-plugin/blob/a5f34e9c93e6461390c912d40725b2758c3c487a/src/main/java/hudson/plugins/active_directory/ActiveDirectoryDomain.java#L157-L159   which adds a port of 3268 if not specified. Note that the port does not get added in the validation logic https://github.com/jenkinsci/active-directory-plugin/blob/a5f34e9c93e6461390c912d40725b2758c3c487a/src/main/java/hudson/plugins/active_directory/ActiveDirectoryDomain.java#L279-L389  

            fbelzunc Félix Belzunce Arcos
            caolandix Caolan Dix
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: