function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ShreeShree 

Proxy Issue in Sforce Data Loader

Hi,

We are using proxy server for internet connection.
I've added ProxyHost,ProxyPort,ProxyUser and ProxyPassword details in Sforce Data Loader -> Settings menu.

When I am trying to login, it's giving the error message as:
"(407) Proxy Authentication Required (The ISA Server requires authorization to fulfill the request. Access to the Web Proxy service is denied)."

The Proxy uses the INTEGRATED Authentication method.


Please let me know how this issue can be solved?

What are the changes to be done in the source...

Thanks in advance.
SuperfellSuperfell
the current verison of the data loader doesn't support NTLM authentication.
ShreeShree
Hi,

Does INTEGRATED authentication method comes under NTLM?

Is there any way of modifying the source code to achieve the connection through this proxy?


Please let me know.

Thank you.
SuperfellSuperfell
Integrated is NTLM. newer versions of Axis do support NTLM i believe, so you should be able to grab the source from sourceforge and update it to get NTLM support.
udupaudupa
Hi,

Thank you for the suggestion.

Is there any sample code available for Proxy settings?

I've added the following to PartnerClient.connect,PartnerClient.setBindingProperties and LoaderController.login:
System.getProperties().put("http:proxySet", "true" );
System.getProperties().put("http.proxyHost", "xxxxx" );
System.getProperties().put("http.proxyPort", "80" );
System.getProperties().put("http.proxyUser", "xxxxx");
System.getProperties().put("http.proxyPassword", "xxxxxx");

but, this didn't work.

Can you please give me the idea on how to set the proxy in the code and which files to be changed?
It could be a great help to me.

Thank you...
SuperfellSuperfell
All the HTTP stuff is done in CommonsHTTPSender, see
http://cvs.sourceforge.net/viewcvs.py/sforce-app-dl/sforcedataloader/src/common/api/soap/CommonsHTTPSender.java?rev=1.4&view=markup

in particular see the setHostConfiguration method.
udupaudupa
Hi,

Thank you.

I've added the following line in CommonsHTTPSender.setHostConfiguration:
System.getProperties().put("httproxySet", "true" );
System.getProperties().put("http.proxyHost", "xxxxx" );
System.getProperties().put("http.proxyPort", "80" );
System.getProperties().put("http.proxyUser", "xxxxx");
System.getProperties().put("http.proxyPassword", "xxxxxx");

But the error didn't get solved yet.

Is this the proxy issue or error in the code itself?
Do we need to make any other changes in any other files for proxy settings?

Thank you.....
SuperfellSuperfell
you need to read the Apache http client docs on how to set it up for ntlm auth.
udupaudupa
Hi,

Thank you very much.

I made the required changes and now the Data Loader is working....
Yashita Goyal 17Yashita Goyal 17
Hi @udapa,

Can you please help how you resolved the issue. Am getting 407 Proxy Authorization required error even after giving Proxy host, port, username,password.

Thanks
Yashita