# RubySSPI 0.0.2 - Enabling Windows NTLM/Negotiate proxy authe

**URL:** <https://www.ruby-forum.com/t/rubysspi-0-0-2-enabling-windows-ntlm-negotiate-proxy-authe/98718>\
**Category:** Ruby\
**Created:** [July 17, 2006, 7:16pm UTC](https://www.ruby-forum.com/t/rubysspi-0-0-2-enabling-windows-ntlm-negotiate-proxy-authe/98718 "2006-07-17T19:16:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vtphysguy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/v/77aa72/32.png) [@vtphysguy](https://www.ruby-forum.com/u/vtphysguy)\
**Post date:** [July 17, 2006, 7:16pm UTC](https://www.ruby-forum.com/t/rubysspi-0-0-2-enabling-windows-ntlm-negotiate-proxy-authe/98718/1 "2006-07-17T19:16:53Z")

</div>

= What’s New

A small release for my library, which now provides a file that can be  
copied  
into site\_ruby and used to enable proxy authentication from the command  
line  
for any ruby script.

= Where to find it

Hosted on rubyforge:

[http://rubyforge.org/projects/rubysspi/](http://rubyforge.org/projects/rubysspi/)

Or via gem install:

gem install rubysspi

= What is it

Previously, if you had a proxy that required NTLM authentication you  
needed  
to direct all your ruby calls to a local proxy such as the APS NTLM  
proxy (  
[http://ntlmaps.sourceforge.net/](http://ntlmaps.sourceforge.net/)). This required you to enter your  
password  
into a file or on start up. WIth this gem, ruby libraries such as  
open-uri  
and net/http can directly access internet sites and you never have to  
enter  
your username or password into any configuration files.

= How to use

The file provided in this release is most useful for rubygems. To use  
(assuming your rubygems is not working yet):

1. Download the gem via rubyforge:  
[http://rubyforge.org/frs/download.php/11657/rubysspi-0.0.1-i386-mswin32.gem](http://rubyforge.org/frs/download.php/11657/rubysspi-0.0.1-i386-mswin32.gem)
2. Install
3. Copy spa.rb from the rubysspi gem directory to your site\_ruby\1.8  
directory
4. set your http\_proxy environment variable (e.g.  
[http://proxy.corp.com:8080](http://proxy.corp.com:8080))
5. Run rubygems:

ruby -rspa ‘C:\Program Files\ruby\bin\gem’ list --remote rubysspi

The adventerous can modify their gem.bat and gem.cmd files to include  
this  
library always, and then run the familiar gem commands directly.

Commants and feedback welcome!

Justin
