ntlm.rb

Path: lib/net/ntlm.rb
Last Update: Sat Feb 23 07:20:50 +0000 2019

encoding: UTF-8

net/ntlm.rb

An NTLM Authentication Library for Ruby

This code is a derivative of "dbf2.rb" written by yrock and Minero Aoki. You can find original code here: jp.rubyist.net/magazine/?0013-CodeReview


Copyright (c) 2005,2006 yrock

2006-02-11 refactored by Minero Aoki


All protocol information used to write this code stems from "The NTLM Authentication Protocol" by Eric Glass. The author would thank to him for this tremendous work and making it available on the net. davenport.sourceforge.net/ntlm.html


Copyright (c) 2003 Eric Glass


The author also looked Mozilla-Firefox-1.0.7 source code, namely, security/manager/ssl/src/nsNTLMAuthModule.cpp and Jonathan Bastien-Filiatrault‘s libntlm-ruby. "x2a.org/websvn/filedetails.php? repname=libntlm-ruby&path=%2Ftrunk%2Fntlm.rb&sc=1" The latter has a minor bug in its separate_keys function. The third key has to begin from the 14th character of the input string instead of 13th:)

Required files

base64   openssl   openssl/digest   socket   net/ntlm/exceptions   net/ntlm/field   net/ntlm/int16_le   net/ntlm/int32_le   net/ntlm/int64_le   net/ntlm/string   net/ntlm/field_set   net/ntlm/blob   net/ntlm/security_buffer   net/ntlm/message   net/ntlm/message/type0   net/ntlm/message/type1   net/ntlm/message/type2   net/ntlm/message/type3   net/ntlm/encode_util   net/ntlm/client   net/ntlm/channel_binding   net/ntlm/target_info  

[Validate]