Ba7a7chy
Ba7a7chy

Reputation: 1521

Ruby NTLM Version 2 Gem or Library

For a project I'm doing in ruby, I need to create an NTLM version 2 authentication against a remote server, I'm using ruby, not ruby on rails. The client (my project) is on a Linux Machine (Ubuntu server 14.04), the remote server is a windows 2008R2 , with IIS 7.5. After hours of searching, googling and IRCing I have not found any support for NTLM version 2 in ruby (not ruby on rails), no Gems or libraries.

Does one exist or is there some technical issue that wont allow NTLMv2 to be supported in ruby ?

Upvotes: 0

Views: 692

Answers (3)

Harsh Raj
Harsh Raj

Reputation: 220

I found this one recently that support NTLMv2.

https://github.com/at-point/net-http-ntlm

It is basically a drop-in replacement for ruby-ntlm with NTLMv2 support.

Upvotes: 0

Richard Viney
Richard Viney

Reputation: 1007

Recently when I had to get a Ruby app navigating through an NTLMv2 proxy I ended up using cntlm to interface with the NTLMv2 proxy. Cntlm then provides a simple HTTP proxy on localhost which I use in my Ruby application, and can also use when installing gems, using bundler etc...

There isn't a native Ruby NTLMv2 solution available that I'm aware of.

Upvotes: 1

Joel Brewer
Joel Brewer

Reputation: 1652

Found this project on GitHub: https://github.com/wimm/rubyntlm.

According to the Readme: "Supports NTLM and NTLMv2 reponses." Unfortunately it hasn't been updated since 2010, although you could probably fork the project and have a relatively good base to work from.

Upvotes: 1

Related Questions