0.0
No release in over a year
Adds NTLM authentication support for Net::HTTP using rubyntlm
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13.0
~> 3.0

Runtime

~> 0.6
 Project Readme

net-http-ntlm

CI Coverage Gem Version

Adds NTLM authentication to HTTP requests using the rubyntlm gem. A drop-in replacement for ruby-ntlm with NTLMv2 support.

NTLM authentication is used in Microsoft's server products, such as MS Exchange Server and IIS.

Install

gem install net-http-ntlm

If you'd rather install net-http-ntlm using bundler, add a line for it in your Gemfile:

gem 'net-http-ntlm'

Note about Ruby 3 and OpenSSL 3

NTLM potentially uses legacy ciphers, which need to be enabled explicitly.

You can either create a custom OpenSSL profile in Ruby or load a custom SSL configuration by setting OPENSSL_CONF= before Ruby loads.

There's an example in the [Github Actions][.github/workflows/ci.yml]

Usage

require 'net/http/ntlm'
http = Net::HTTP.new('www.example.com')
request = Net::HTTP::Get.new('/')
request.ntlm_auth('User', 'Domain', 'Password')
response = http.request(request)

References