NTLM Authentication #28

Open
rodrei opened this Issue Jun 14, 2012 · 2 comments

Comments

Projects
None yet
2 participants
@rodrei

rodrei commented Jun 14, 2012

I'm trying to connect to an Exchange Server that only supports NTLM authentication. I found this issue where it's recommended to install the rubyntlm gem (https://github.com/wimm/rubyntlm). I installed it and tried again and the "Wrong credentials" error was still being raised. Looking at the http drivers code it seems like it's only trying to use HTTP basic auth (unless I'm missing something, please let me know if I am).

Playing around with the rubyntlm gem I managed to authenticate successfully https://gist.github.com/2932631, but from outside the handsoap gem.

Im going to try to add ntlm support to the handsoap gem, and the best place I can think of to do it is in the http drivers, would this be the right place?

@troelskn

This comment has been minimized.

Show comment Hide comment
@troelskn

troelskn Jun 19, 2012

Collaborator

Hi. Just saw this comment now. Yes, in the http-drivers. You could compare with how basic-auth is implemented, and just mimic that.

Collaborator

troelskn commented Jun 19, 2012

Hi. Just saw this comment now. Yes, in the http-drivers. You could compare with how basic-auth is implemented, and just mimic that.

@rodrei

This comment has been minimized.

Show comment Hide comment
@rodrei

rodrei Jun 19, 2012

It still needs a refactor but is working. Here's what I did:

https://github.com/EdisonJunior/handsoap/commit/279777aec60bb70d0a10d5dbdf35f8ea69b601a6

rodrei commented Jun 19, 2012

It still needs a refactor but is working. Here's what I did:

https://github.com/EdisonJunior/handsoap/commit/279777aec60bb70d0a10d5dbdf35f8ea69b601a6

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