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

NTLM Proxy authentication issue with gitlab source branch plugin

    XMLWordPrintable

Details

    Description

      If I configure proxy through JAVA_OPTS:
      -Dhttps.proxyHost=-Dhttps.proxyPort= -Dhttp.proxyUser= -Dhttp.proxyPassword= -Dhttp.proxyHost= -Dhttp.proxyPort= -Dhttps.proxyUser= -Dhttps.proxyPassword=

      to my proxy which is NTLM (no domain used) i cannot connect to my gitlab instance.

      If I run CNTLM (http://cntlm.sourceforge.net/) and set proxy to localhost it works

      When I look at the code of gtihub branch source plugin I see no reference to NTLM options of gitlab4j (https://github.com/gitlab4j/gitlab4j-api/blob/master/README.md) :

      // Log in to the GitLab server using an NTLM (Windows DC) proxy Map<String, Object> ntlmProxyConfig = ProxyClientConfig.createNtlmProxyClientConfig( "http://your-proxy-server", "windows-username", "windows-password", "windows-workstation", "windows-domain"); GitLabApi gitLabApi = new GitLabApi("http://your.gitlab.com", "YOUR_PERSONAL_ACCESS_TOKEN", null, ntlmProxyConfig);

      If you fix this bug please take into account the possibility of not having domain, maybe with  this syntax \username (not sure it is working in Jenkins core neither)?

      Attachments

        Activity

          I am afraid I do not understand your problem. Also think this should be work in gitlab4j-api. Could you create a ticket and discuss this matter with the maintainer? Also before creating the ticket take a look at https://github.com/gitlab4j/gitlab4j-api/issues/395#issuecomment-504691628.

          baymac Parichay Barpanda added a comment - I am afraid I do not understand your problem. Also think this should be work in gitlab4j-api. Could you create a ticket and discuss this matter with the maintainer? Also before creating the ticket take a look at https://github.com/gitlab4j/gitlab4j-api/issues/395#issuecomment-504691628 .
          fauretristan Tristan FAURE added a comment -

          I'm deeply sorry if you don't understand my issue.

          As you mentioned Gitlab4j-api supports NTLM proxies that's right

          the issue is it is not working with jenkins plugin (or I did not found how), I thought it does not work because in the jenkins plugin I see no reference to the code you mentioned (https://github.com/gitlab4j/gitlab4j-api/issues/395#issuecomment-504691628)

          So to rephrase, how can i use NTLM proxy with gitlab jenkins plugins ? because when I set env vars (-Dhttps.proxyHost...) it does not work

          fauretristan Tristan FAURE added a comment - I'm deeply sorry if you don't understand my issue. As you mentioned Gitlab4j-api supports NTLM proxies that's right the issue is it is not working with jenkins plugin (or I did not found how), I thought it does not work because in the jenkins plugin I see no reference to the code you mentioned ( https://github.com/gitlab4j/gitlab4j-api/issues/395#issuecomment-504691628) So to rephrase, how can i use NTLM proxy with gitlab jenkins plugins ? because when I set env vars (-Dhttps.proxyHost...) it does not work

          People

            baymac Parichay Barpanda
            fauretristan Tristan FAURE
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: