Forums | Admin

Discussion Forums: help

Start New Thread Start New Thread
Message: 31460
BY: Navjeet Chabbewal (jeet)
DATE: 2007-11-05 16:28
SUBJECT: RE: cannot use rubysspi with NTLM proxy serve

 

1. I am not sure about ISA server.
2. The http_proxy variable does not include http as suggested by you.

Here is the output of trace_proxy.rb (I have replaced my actual domain with word "mydomain")

C:\ruby\lib\ruby\gems\1.8\gems\rubysspi-1.2.3\test>ruby trace_proxy.rb
opening connection to eastproxy.mydomain.com...
opened
<- "GET http://www.google.com/ HTTP/1.1\r\nAccept: */*\r\nHost: http://www.google.com\r
\nProxy-Authorization: Negotiate TlRMTVNTUAABAAAAt4II4gAAAAAAAAAAAAAAAAAAAAAFASg
KAAAADw==\r\n\r\n"
-> "HTTP/1.1 407 Proxy Authentication Required\r\n"
-> "Proxy-Authenticate: BASIC realm=\"mydomain\"\r\n"
-> "Cache-Control: no-cache\r\n"
-> "Pragma: no-cache\r\n"
-> "Content-Type: text/html; charset=utf-8\r\n"
-> "Proxy-Connection: close\r\n"
-> "Set-Cookie: BCSI-CS9B68EF11=2; Path=/\r\n"
-> "Connection: close\r\n"
-> "Content-Length: 830\r\n"
-> "\r\n"
reading 830 bytes...
-> "<HTML><HEAD>\n<TITLE>Access Denied</TITLE>\n</HEAD>\n<BODY>\n<FONT face=\"He
lvetica\">\n<big><strong></strong></big><BR>\n</FONT>\n<blockquote>\n<TABLE bord
er=0 cellPadding=1 width=\"80%\">\n<TR><TD>\n<FONT face=\"Helvetica\">\n<big>Acc
ess Denied (authentication_failed)</big>\n<BR>\n<BR>\n</FONT>\n</TD></TR>\n<TR><
TD>\n<FONT face=\"Helvetica\">\nYour credentials could not be authenticated: \"A
nother round of authentication required.\". You will not be permitted access unt
il your credentials can be verified.\n</FONT>\n</TD></TR>\n<TR><TD>\n<FONT face=
\"Helvetica\">\nThis is typically caused by an incorrect username and/or passwor
d, but could also be caused by network problems.\n</FONT>\n</TD></TR>\n<TR><TD>\
n<FONT face=\"Helvetica\" SIZE=2>\n<BR>\nFor assistance, contact your net"
-> "work support team.\n</FONT>\n</TD></TR>\n</TABLE>\n</blockquote>\n</FONT>\n<
/BODY></HTML>\n"
read 830 bytes
Conn close
./../lib/win32/sspi.rb:297:in `complete_authentication': Error: SEC_E_INVALID_TO
KEN (RuntimeError)
from trace_proxy.rb:33
from c:/ruby/lib/ruby/1.8/net/http.rb:543:in `start'
from trace_proxy.rb:30


Thread View

Thread Author Date
cannot use rubysspi with NTLM proxy serverNavjeet Chabbewal2007-11-05 15:45
      RE: cannot use rubysspi with NTLM proxy serveJustin Bailey2007-11-05 16:02
            RE: cannot use rubysspi with NTLM proxy serveNavjeet Chabbewal2007-11-05 16:28
                  RE: cannot use rubysspi with NTLM proxy serveNavjeet Chabbewal2008-08-04 15:34
                        RE: cannot use rubysspi with NTLM proxy serveJustin Bailey2008-08-04 15:50

Post a followup to this message