Search code examples
rubyrubygemsntlmv2

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 ?


Solution

  • 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.