NTLM Authentication and SharePoint web services #7

Open
cmornard opened this Issue Nov 30, 2009 · 3 comments

Comments

Projects
None yet
4 participants

I am trying to use handsoap 1.1.4 to consume SharePoint 2003 (WSS 2.0) web services. After fiddling a little bit with the configuration of namespaces, I have come to the point where I can send a correct SOAP request but I receive 401 HTTP error: Unauthorized. I am following the guidelines for HTTP authentication (http_request.set_auth @@username, @@password) but I believe SharePoint requires NTLM. Is there any way to make that work with Handsoap?

Contributor

jimmiw commented Dec 1, 2009

Hello,

It should be possible to add support for NTLM auth in Net::HTTP and Curb drivers at least. However, we haven't a sharepoint server at work, so testing it will be difficult.

Just make sure that the gem 'rubyntlm' is installed. It does not get installed as a dependency so it may not be there. I did some playing with Sharepoint Web Services a while back and it worked great. If you want some examples check out:
http://github.com/zenchild/viewpoint_spws

Contributor

dking commented Jan 7, 2011

I found a bug in the 'rubyntlm' gem when the Kerberos-style "user@realm"
format is used. Here's a link to my commit with the fix:
wimm/rubyntlm@ae917e3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment