Skip to content

Commit

Permalink
Merge pull request #23 from marek-veber/ntlm1-auth
Browse files Browse the repository at this point in the history
fix NTLM1 auth - NTLM::lm_response(pwd, chal) and NTLM::ntlm_response…
  • Loading branch information
zenchild committed Jun 23, 2015
2 parents 9d2e57e + 8350393 commit 5845af0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/net/ntlm/message/type2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ def response(arg, opt = {})
ar = {:ntlm_hash => NTLM::ntlm_hash(pwd, opt), :challenge => chal}
lm_res, ntlm_res = NTLM::ntlm2_session(ar, opt)
else
lm_res = NTLM::lm_response(pwd, chal)
ntlm_res = NTLM::ntlm_response(pwd, chal)
ar = {:lm_hash => NTLM::lm_hash(pwd), :challenge => chal}
lm_res = NTLM::lm_response(ar)
ar = {:ntlm_hash => NTLM::ntlm_hash(pwd, opt), :challenge => chal}
ntlm_res = NTLM::ntlm_response(ar)
end

Type3.create({
Expand Down

0 comments on commit 5845af0

Please sign in to comment.