You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Fernando Cesar da Silva <fs...@synchro.com.br> on 2012/07/05 14:26:28 UTC
Proxy authentication failure on Axis 1.6.1
Hello,
We are experiencing serious problems trying to authenticate Axis 1.6.1 in a
NTLM Proxy Server.
We are using the parameters below, these parameters works as expected in an
application with Axis 1.5.1 (looking at the trace route I see the packages
going through the Proxy) and doesn't work in the same application with Axis
1.6.1. (looking at the trace route I see that the packages never reach the
Proxy).
<transportSender name="https"
class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
<parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
<parameter name="PROXY" proxy_host="proxy"
proxy_port="80">USER:DOMAIN:PASSWORD</parameter>
<parameter name="Transfer-Encoding">chunked</parameter>
</transportSender>
<!-- ================================================= -->
<!-- Parameters -->
<!-- ================================================= -->
<parameter name="Proxy">
<Configuration>
<ProxyHost>proxy</ProxyHost>
<ProxyPort>80</ProxyPort>
<ProxyUser>DOMAIN/USER</ProxyUser>
<ProxyPassword>PASSWORD</ProxyPassword>
</Configuration>
</parameter>
Our suspicion is that these parameters are not being read properly. The
axis2.xml is under WAR_FILE/WEB-INF/conf/. Is this the proper location? Is
there something wrong with the parameters?
Any clue will be helpful.
Thanks.
Fernando Cesar.
Re: Proxy authentication failure on Axis 1.6.1
Posted by Kishanthan Thangarajah <ks...@gmail.com>.
On Thu, Jul 5, 2012 at 5:56 PM, Fernando Cesar da Silva <
fsilva@synchro.com.br> wrote:
> Hello,****
>
> ** **
>
> We are experiencing serious problems trying to authenticate Axis 1.6.1 in
> a NTLM Proxy Server.****
>
> ** **
>
> We are using the parameters below, these parameters works as expected in
> an application with Axis 1.5.1 (looking at the trace route I see the
> packages going through the Proxy) and doesn’t work in the same application
> with Axis 1.6.1. (looking at the trace route I see that the packages never
> reach the Proxy).****
>
> ** **
>
> <transportSender name="https"
> class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
> ****
>
> <parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter> ****
>
> <parameter name="PROXY" proxy_host="proxy"
> proxy_port="80">USER:DOMAIN:PASSWORD</parameter> ****
>
> <parameter name="Transfer-Encoding">chunked</parameter>***
> *
>
> </transportSender>****
>
> ** **
>
> <!-- ================================================= -->****
>
> <!-- Parameters -->****
>
> <!-- ================================================= -->****
>
> <parameter name="Proxy">****
>
> <Configuration>****
>
> <ProxyHost>proxy</ProxyHost>****
>
> <ProxyPort>80</ProxyPort>****
>
> <ProxyUser>DOMAIN/USER</ProxyUser>****
>
> <ProxyPassword>PASSWORD</ProxyPassword>****
>
> </Configuration>****
>
> </parameter>****
>
> ** **
>
> Our suspicion is that these parameters are not being read properly. The
> axis2.xml is under WAR_FILE/WEB-INF/conf/. Is this the proper location? Is
> there something wrong with the parameters?
>
There is no issue with the parameters unless you have given the correct
credentials. But AFAIK you don't have to use both ways to define proxy
properties. According to the axis2 documentation [1], the first way of
configuration is deprecated and the second way is recommended.
Alternatively, you can also try configuring these parameters at run time in
your client stub [1] and check again.
But few suggestions when it comes to NTLM authentications.
1. As i understand this, you are trying authenticate with a NTLM server. So
you have configure NTLM authentication in your client side apart from proxy
properties. This article [2] will be helpful in that case.
2. Currently Axis2 http transport is being upgraded to use httpclient-4
[3], which will support NTLM authentication changes (NTLMv2). You can also
try this in the current trunk.
[1] http://axis.apache.org/axis2/java/core/docs/http-transport.html#auth
[2] http://wso2.org/library/161
[3] https://issues.apache.org/jira/browse/AXIS2-4318
Thanks,
Kishanthan.
> ****
>
> ** **
>
> Any clue will be helpful.****
>
> ** **
>
> Thanks.****
>
> ** **
>
> Fernando Cesar.****
>
> ** **
>
Re: Proxy authentication failure on Axis 1.6.1
Posted by robert lazarski <ro...@gmail.com>.
On Thu, Jul 5, 2012 at 9:26 AM, Fernando Cesar da Silva
<fs...@synchro.com.br> wrote:
> Hello,
>
>
>
> We are experiencing serious problems trying to authenticate Axis 1.6.1 in a
> NTLM Proxy Server.
>
I suggest you try the latest, axis2 1.6.2 , which was a bug fix
release. I'm not an NTLM user though I can offer some generic advice.
HttpClient handles the NTLM part, so I'd look in the logs to see if
its getting triggered or not.
>
>
> We are using the parameters below, these parameters works as expected in an
> application with Axis 1.5.1 (looking at the trace route I see the packages
> going through the Proxy) and doesn’t work in the same application with Axis
> 1.6.1. (looking at the trace route I see that the packages never reach the
> Proxy).
>
The format of the axis2.xml changed a bit during those releases, IIRC.
Try putting org.apache in debug, you may get some clues about the
params, format changes, and everything in between. You could also try
downloading the latest war, and do a diff on the your copy of the
axis2.xml file and the latest version.
---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org