jenkinsci / jenkinsci/gitlab-branch-source-plugin

[JENKINS-62295] NTLM Proxy authentication issue with gitlab source branch plugin

Open
#675 2 comments 0 reactions 0 assignees View on GitHub
component:gitlab-branch-source-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
134
Forks
113
PR merge metrics
No merged PRs in 30d

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 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)?

---
Originally reported by fauretristan, imported from: NTLM Proxy authentication issue with gitlab source branch plugin


  • assignee: baymac
  • status: Open
  • priority: Major
  • component(s): gitlab-branch-source-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 20251216-182730

Raw content of original issue

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)?

  • environment: gitlab-branch-source:1.5.1

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.