Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » ntlm authentication question
ntlm authentication question [message #325391] Sat, 16 February 2008 10:14 Go to next message
Eclipse UserFriend
Originally posted by: marc_e.ye.olde.spam.buster.cablespeed.com

All,
I've got a plugin that uses axis 1.4 to make webservice calls. Things work
nicely for unauthenticated and basic authentication. But when I secure a
resource with NTLM (integrated windows authentication), I always get "401
unauthorized".

I've tried everything I could learn about how to get this to work with
Axis but I just can't figure it out. I see no reason why it shouldn't work.

The reason I'm posting to this group is that I know it can be done because
I can access the wsdl URL using the web services explorer in the web tools
project. And I can access the URL using the services browser in the
ColdFusion eclipse plugins.

So mainly what I'm hoping is that someone out there reads this who maybe
knows a bit about how the web tools project is doing this, or someone who
has tried to use axis inside an eclipse plugin before to communicate with an
ntlm-protected resource.

Thanks for any help!

Marc
Re: ntlm authentication question [message #325397 is a reply to message #325391] Sun, 17 February 2008 21:16 Go to previous messageGo to next message
Eclipse UserFriend
The HTTP authentication using Axis is done using the Apache HTTPClient.
Though it supports NTLM authentication, it does not support NTLM v2
authentication. That's probably the problem you are running into.

This might help:

http://www.oaklandsoftware.com/papers/ntlm.html

Francis

Marc E wrote:
> All,
> I've got a plugin that uses axis 1.4 to make webservice calls. Things work
> nicely for unauthenticated and basic authentication. But when I secure a
> resource with NTLM (integrated windows authentication), I always get "401
> unauthorized".
>
> I've tried everything I could learn about how to get this to work with
> Axis but I just can't figure it out. I see no reason why it shouldn't work.
>
> The reason I'm posting to this group is that I know it can be done because
> I can access the wsdl URL using the web services explorer in the web tools
> project. And I can access the URL using the services browser in the
> ColdFusion eclipse plugins.
>
> So mainly what I'm hoping is that someone out there reads this who maybe
> knows a bit about how the web tools project is doing this, or someone who
> has tried to use axis inside an eclipse plugin before to communicate with an
> ntlm-protected resource.
>
> Thanks for any help!
>
> Marc
>
>
Re: ntlm authentication question [message #325407 is a reply to message #325397] Mon, 18 February 2008 04:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: marc_e.ye.olde.spam.buster.cablespeed.com

Thanks Francis. So would you say that if I followed all the instructions for
using httpclient, and I see the NTLM credentials being passed in tcpmon,
that it *should* be working, and that provided I'm seeing the credentials
being passed, then it's something outside of code, i.e. machine setup, etc
that's causing it not to work? Does that seem most likely?

Thanks again.

Marc


"Francis Upton" <francisu@ieee.org> wrote in message
news:47B8EA97.4090709@ieee.org...
> The HTTP authentication using Axis is done using the Apache HTTPClient.
> Though it supports NTLM authentication, it does not support NTLM v2
> authentication. That's probably the problem you are running into.
>
> This might help:
>
> http://www.oaklandsoftware.com/papers/ntlm.html
>
> Francis
>
> Marc E wrote:
>> All,
>> I've got a plugin that uses axis 1.4 to make webservice calls. Things
>> work nicely for unauthenticated and basic authentication. But when I
>> secure a resource with NTLM (integrated windows authentication), I always
>> get "401 unauthorized".
>>
>> I've tried everything I could learn about how to get this to work with
>> Axis but I just can't figure it out. I see no reason why it shouldn't
>> work.
>>
>> The reason I'm posting to this group is that I know it can be done
>> because I can access the wsdl URL using the web services explorer in the
>> web tools project. And I can access the URL using the services browser in
>> the ColdFusion eclipse plugins.
>>
>> So mainly what I'm hoping is that someone out there reads this who maybe
>> knows a bit about how the web tools project is doing this, or someone who
>> has tried to use axis inside an eclipse plugin before to communicate with
>> an ntlm-protected resource.
>>
>> Thanks for any help!
>>
>> Marc
Re: ntlm authentication question [message #325429 is a reply to message #325407] Mon, 18 February 2008 11:11 Go to previous messageGo to next message
Eclipse UserFriend
Yes, exactly, you are probably communication with a Windows Server 2003
with the default configuration, it insists on NTLM V2. Unfortunately,
NTLM is not very helpful when it does not work out, it just repeats the
401 without saying why. You could try installing the eval version of
the Oakland Software HTTP client (which works with Axis) and see if the
problem goes away.

Marc E wrote:
> Thanks Francis. So would you say that if I followed all the instructions for
> using httpclient, and I see the NTLM credentials being passed in tcpmon,
> that it *should* be working, and that provided I'm seeing the credentials
> being passed, then it's something outside of code, i.e. machine setup, etc
> that's causing it not to work? Does that seem most likely?
>
> Thanks again.
>
> Marc
>
>
> "Francis Upton" <francisu@ieee.org> wrote in message
> news:47B8EA97.4090709@ieee.org...
>> The HTTP authentication using Axis is done using the Apache HTTPClient.
>> Though it supports NTLM authentication, it does not support NTLM v2
>> authentication. That's probably the problem you are running into.
>>
>> This might help:
>>
>> http://www.oaklandsoftware.com/papers/ntlm.html
>>
>> Francis
>>
>> Marc E wrote:
>>> All,
>>> I've got a plugin that uses axis 1.4 to make webservice calls. Things
>>> work nicely for unauthenticated and basic authentication. But when I
>>> secure a resource with NTLM (integrated windows authentication), I always
>>> get "401 unauthorized".
>>>
>>> I've tried everything I could learn about how to get this to work with
>>> Axis but I just can't figure it out. I see no reason why it shouldn't
>>> work.
>>>
>>> The reason I'm posting to this group is that I know it can be done
>>> because I can access the wsdl URL using the web services explorer in the
>>> web tools project. And I can access the URL using the services browser in
>>> the ColdFusion eclipse plugins.
>>>
>>> So mainly what I'm hoping is that someone out there reads this who maybe
>>> knows a bit about how the web tools project is doing this, or someone who
>>> has tried to use axis inside an eclipse plugin before to communicate with
>>> an ntlm-protected resource.
>>>
>>> Thanks for any help!
>>>
>>> Marc
>
>
Re: ntlm authentication question [message #325435 is a reply to message #325429] Mon, 18 February 2008 15:11 Go to previous message
Eclipse UserFriend
Originally posted by: marc_e.ye.olde.spam.buster.cablespeed.com

Cool. Thanks a lot, Francis.


"Francis Upton" <francisu@ieee.org> wrote in message
news:47B9AE49.5050608@ieee.org...
> Yes, exactly, you are probably communication with a Windows Server 2003
> with the default configuration, it insists on NTLM V2. Unfortunately,
> NTLM is not very helpful when it does not work out, it just repeats the
> 401 without saying why. You could try installing the eval version of the
> Oakland Software HTTP client (which works with Axis) and see if the
> problem goes away.
>
> Marc E wrote:
>> Thanks Francis. So would you say that if I followed all the instructions
>> for using httpclient, and I see the NTLM credentials being passed in
>> tcpmon, that it *should* be working, and that provided I'm seeing the
>> credentials being passed, then it's something outside of code, i.e.
>> machine setup, etc that's causing it not to work? Does that seem most
>> likely?
>>
>> Thanks again.
>>
>> Marc
>>
>>
>> "Francis Upton" <francisu@ieee.org> wrote in message
>> news:47B8EA97.4090709@ieee.org...
>>> The HTTP authentication using Axis is done using the Apache HTTPClient.
>>> Though it supports NTLM authentication, it does not support NTLM v2
>>> authentication. That's probably the problem you are running into.
>>>
>>> This might help:
>>>
>>> http://www.oaklandsoftware.com/papers/ntlm.html
>>>
>>> Francis
>>>
>>> Marc E wrote:
>>>> All,
>>>> I've got a plugin that uses axis 1.4 to make webservice calls. Things
>>>> work nicely for unauthenticated and basic authentication. But when I
>>>> secure a resource with NTLM (integrated windows authentication), I
>>>> always get "401 unauthorized".
>>>>
>>>> I've tried everything I could learn about how to get this to work
>>>> with Axis but I just can't figure it out. I see no reason why it
>>>> shouldn't work.
>>>>
>>>> The reason I'm posting to this group is that I know it can be done
>>>> because I can access the wsdl URL using the web services explorer in
>>>> the web tools project. And I can access the URL using the services
>>>> browser in the ColdFusion eclipse plugins.
>>>>
>>>> So mainly what I'm hoping is that someone out there reads this who
>>>> maybe knows a bit about how the web tools project is doing this, or
>>>> someone who has tried to use axis inside an eclipse plugin before to
>>>> communicate with an ntlm-protected resource.
>>>>
>>>> Thanks for any help!
>>>>
>>>> Marc
>>
Previous Topic:Can one define the target platform as a project specific setting?
Next Topic:need help tweaking a layout on preference page
Goto Forum:
  


Current Time: Sat Jul 12 21:31:28 EDT 2025

Powered by FUDForum. Page generated in 0.06288 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top