Cannot access repositories via basic auth proxy

NTLM authentication can be problematic in Gradle, but it does work for most users. The original poster of this issue found that once ‘http.keepAlive=true’ was set, Gradle successfully authenticated with their proxy server.

Have you confirmed that Gradle 1.4 NTLM authentication does not work for you? Can you post details of the failure? (Please open a new forum topic if you want to pursue this further)

Hi Daz,

Im setting this in my gradle.properties:

systemProp.http.proxyHost=myHost systemProp.http.proxyPort=myPort systemProp.http.proxyUser=mydomain\myusername systemProp.http.proxyPassword=mypwd systemProp.http.keepAlive=true

and the error I get is:

Proxy authentication error: Invalid name provided (Mechanism level: Could not load configuration file C:\WINDOWS\krb5.ini (The system cannot find the file specified))

Ive also tried:

systemProp.http.proxyHost=myHost systemProp.http.proxyPort=myPort systemProp.http.auth.ntlm.domain=mydomain systemProp.http.proxyUser=myusername systemProp.http.proxyPassword=mypwd systemProp.http.keepAlive=true

which yielded the same result

That looks a lot like the warning that is commonly emitted by HttpClient, not an actual error. The actual error will be in the form of a stack trace. Debug logs are also useful.

If you want to follow up on this: 1) Start a new forum topic 2) Post your stack trace inside <code/> tags 3) Post your debug logs via GitHub gist.

I won’t be replying to new questions in this forum topic.

Daz,

Seems that Apache is not going to fix HTTPCLIENT-1272.

Is there a way we can force http proxy auth to BASIC?