Ruby/NTLM provides message creator and parser for the NTLM authentication.
https://github.com/winrb/rubyntlm