You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Natalia Ignatowicz <na...@gmx.net> on 2008/03/11 10:05:10 UTC
Axis2 and NTLM
Hi,
I'm trying to use NTLM with an Axis2 (v1.3) webservice. I've found a few posts concerning this issue, but nothing really helpful. Can anyone give me a few hints on how to configure Axis-client and server to make use of NTLM-authentication?
I got these lines for client-configuration:
Authenticator authentication = new Authenticator();
authentication.setUsername("...");
authentication.setPassword("...");
authentication.setDomain("...");
authentication.setHost("...");
stub._getServiceClient().getOptions().setProperty(HTTPConstants.AUTHENTICATE, authentication);
But when using tcpmon it doesn't say a word about NTLM.
Greets,
Natalia
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis2 and NTLM
Posted by MrNobody <to...@pepsi.com>.
What did you do to get it working ??
Natalia Ignatowicz wrote:
>
> I finally got it working!
> Thanks a lot for your advices, Ajith!
>
> Greetings,
> Natalia
>
>
> -------- Original-Nachricht --------
>> Datum: Wed, 12 Mar 2008 16:00:07 -0400
>> Von: "Ajith Ranabahu" <aj...@gmail.com>
>> An: axis-user@ws.apache.org
>> Betreff: Re: Axis2 and NTLM
>
>> Hi,
>> I am not an expert in this part of the API but here is what I
>> understand. Please see my comments inline.
>>
>> On Wed, Mar 12, 2008 at 6:40 AM, Natalia Ignatowicz
>> <na...@gmx.net> wrote:
>> > I've already found that page but it didn't help. Some parts of the code
>> are deprecated (HttpTransportProperties.NTLMAuthentication and
>> HTTPConstants.NTLM_Authentication don't exist in Axis2 1.3).
>> >
>>
>> AFAIK if you are looking for NTLM on the server side then Axis2 would
>> have nothing to do with it (except for the case where Simple Axis
>> server is used. But I don't see why you would do that in production
>> anyway). Your container (say Tomcat) should be configured to handle
>> such things and Axis2 would not see it (nor would want to). For NTLM
>> on Tomcat you can use something like this
>> (http://jcifs.samba.org/src/docs/ntlmhttpauth.html)
>>
>>
>> > Maybe I'm missing some basic points here. Is it even possible for an
>> Axis-Webservice to request NTLM-Auth? If yes, then how has the server to
>> be
>> configured? Or is NTLM only supported for Axis-Clients connecting to a
>> .NET-Webservice or something like that?
>>
>> Basically the answer to this is yes. The NTLM support and
>> configuration mentioned in all Axis2-NTLM docs are for the client (see
>> my comment on top). Since the client is based on Commons HTTPClient
>> you might find some useful info here
>> (http://hc.apache.org/httpclient-3.x/authentication.html#NTLM)
>>
>> HTH
>>
>> Ajith
>>
>> >
>> > Greets,
>> > Natalia
>> >
>>
>>
>>
>> --
>> Ajith Ranabahu
>>
>> Reading, after a certain age, diverts the mind too much from its
>> creative pursuits. Any man who reads too much and uses his own brain
>> too little falls into lazy habits of thinking - Albert Einstein
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>
> --
> Psssst! Schon vom neuen GMX MultiMessenger gehört?
> Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/Axis2-and-NTLM-tp15977716p17779482.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis2 and NTLM
Posted by Natalia Ignatowicz <na...@gmx.net>.
I finally got it working!
Thanks a lot for your advices, Ajith!
Greetings,
Natalia
-------- Original-Nachricht --------
> Datum: Wed, 12 Mar 2008 16:00:07 -0400
> Von: "Ajith Ranabahu" <aj...@gmail.com>
> An: axis-user@ws.apache.org
> Betreff: Re: Axis2 and NTLM
> Hi,
> I am not an expert in this part of the API but here is what I
> understand. Please see my comments inline.
>
> On Wed, Mar 12, 2008 at 6:40 AM, Natalia Ignatowicz
> <na...@gmx.net> wrote:
> > I've already found that page but it didn't help. Some parts of the code
> are deprecated (HttpTransportProperties.NTLMAuthentication and
> HTTPConstants.NTLM_Authentication don't exist in Axis2 1.3).
> >
>
> AFAIK if you are looking for NTLM on the server side then Axis2 would
> have nothing to do with it (except for the case where Simple Axis
> server is used. But I don't see why you would do that in production
> anyway). Your container (say Tomcat) should be configured to handle
> such things and Axis2 would not see it (nor would want to). For NTLM
> on Tomcat you can use something like this
> (http://jcifs.samba.org/src/docs/ntlmhttpauth.html)
>
>
> > Maybe I'm missing some basic points here. Is it even possible for an
> Axis-Webservice to request NTLM-Auth? If yes, then how has the server to be
> configured? Or is NTLM only supported for Axis-Clients connecting to a
> .NET-Webservice or something like that?
>
> Basically the answer to this is yes. The NTLM support and
> configuration mentioned in all Axis2-NTLM docs are for the client (see
> my comment on top). Since the client is based on Commons HTTPClient
> you might find some useful info here
> (http://hc.apache.org/httpclient-3.x/authentication.html#NTLM)
>
> HTH
>
> Ajith
>
> >
> > Greets,
> > Natalia
> >
>
>
>
> --
> Ajith Ranabahu
>
> Reading, after a certain age, diverts the mind too much from its
> creative pursuits. Any man who reads too much and uses his own brain
> too little falls into lazy habits of thinking - Albert Einstein
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
--
Psssst! Schon vom neuen GMX MultiMessenger gehört?
Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis2 and NTLM
Posted by Ajith Ranabahu <aj...@gmail.com>.
Hi,
I am not an expert in this part of the API but here is what I
understand. Please see my comments inline.
On Wed, Mar 12, 2008 at 6:40 AM, Natalia Ignatowicz
<na...@gmx.net> wrote:
> I've already found that page but it didn't help. Some parts of the code are deprecated (HttpTransportProperties.NTLMAuthentication and HTTPConstants.NTLM_Authentication don't exist in Axis2 1.3).
>
AFAIK if you are looking for NTLM on the server side then Axis2 would
have nothing to do with it (except for the case where Simple Axis
server is used. But I don't see why you would do that in production
anyway). Your container (say Tomcat) should be configured to handle
such things and Axis2 would not see it (nor would want to). For NTLM
on Tomcat you can use something like this
(http://jcifs.samba.org/src/docs/ntlmhttpauth.html)
> Maybe I'm missing some basic points here. Is it even possible for an Axis-Webservice to request NTLM-Auth? If yes, then how has the server to be configured? Or is NTLM only supported for Axis-Clients connecting to a .NET-Webservice or something like that?
Basically the answer to this is yes. The NTLM support and
configuration mentioned in all Axis2-NTLM docs are for the client (see
my comment on top). Since the client is based on Commons HTTPClient
you might find some useful info here
(http://hc.apache.org/httpclient-3.x/authentication.html#NTLM)
HTH
Ajith
>
> Greets,
> Natalia
>
--
Ajith Ranabahu
Reading, after a certain age, diverts the mind too much from its
creative pursuits. Any man who reads too much and uses his own brain
too little falls into lazy habits of thinking - Albert Einstein
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis2 and NTLM
Posted by Natalia Ignatowicz <na...@gmx.net>.
I've already found that page but it didn't help. Some parts of the code are deprecated (HttpTransportProperties.NTLMAuthentication and HTTPConstants.NTLM_Authentication don't exist in Axis2 1.3).
Maybe I'm missing some basic points here. Is it even possible for an Axis-Webservice to request NTLM-Auth? If yes, then how has the server to be configured? Or is NTLM only supported for Axis-Clients connecting to a .NET-Webservice or something like that?
Greets,
Natalia
-------- Original-Nachricht --------
> Datum: Tue, 11 Mar 2008 12:11:45 -0400
> Von: "Ajith Ranabahu" <aj...@gmail.com>
> An: axis-user@ws.apache.org
> Betreff: Re: Axis2 and NTLM
> Would this be of any help
>
> http://wso2.org/library/161
>
>
>
> On Tue, Mar 11, 2008 at 5:05 AM, Natalia Ignatowicz
> <na...@gmx.net> wrote:
> > Hi,
> > I'm trying to use NTLM with an Axis2 (v1.3) webservice. I've found a
> few posts concerning this issue, but nothing really helpful. Can anyone give
> me a few hints on how to configure Axis-client and server to make use of
> NTLM-authentication?
> >
> > I got these lines for client-configuration:
> >
> > Authenticator authentication = new Authenticator();
> >
> > authentication.setUsername("...");
> > authentication.setPassword("...");
> > authentication.setDomain("...");
> > authentication.setHost("...");
> >
> >
> stub._getServiceClient().getOptions().setProperty(HTTPConstants.AUTHENTICATE, authentication);
> >
> > But when using tcpmon it doesn't say a word about NTLM.
> >
> > Greets,
> > Natalia
> > --
> > Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> > Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
>
> --
> Ajith Ranabahu
>
> Reading, after a certain age, diverts the mind too much from its
> creative pursuits. Any man who reads too much and uses his own brain
> too little falls into lazy habits of thinking - Albert Einstein
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
--
Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis2 and NTLM
Posted by Ajith Ranabahu <aj...@gmail.com>.
Would this be of any help
http://wso2.org/library/161
On Tue, Mar 11, 2008 at 5:05 AM, Natalia Ignatowicz
<na...@gmx.net> wrote:
> Hi,
> I'm trying to use NTLM with an Axis2 (v1.3) webservice. I've found a few posts concerning this issue, but nothing really helpful. Can anyone give me a few hints on how to configure Axis-client and server to make use of NTLM-authentication?
>
> I got these lines for client-configuration:
>
> Authenticator authentication = new Authenticator();
>
> authentication.setUsername("...");
> authentication.setPassword("...");
> authentication.setDomain("...");
> authentication.setHost("...");
>
> stub._getServiceClient().getOptions().setProperty(HTTPConstants.AUTHENTICATE, authentication);
>
> But when using tcpmon it doesn't say a word about NTLM.
>
> Greets,
> Natalia
> --
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
--
Ajith Ranabahu
Reading, after a certain age, diverts the mind too much from its
creative pursuits. Any man who reads too much and uses his own brain
too little falls into lazy habits of thinking - Albert Einstein
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org