Bugs item #10746, was opened at 2007-05-10 11:47 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=10746&group_id=426 Category: Standard Library Group: 1.8.x Status: Open Resolution: None Priority: 3 Submitted By: Greg Oaks (gregoaks) Assigned to: Nobody (None) Summary: "password" is case sensitive in lib/telnet.rb Initial Comment: In attempting to telnet to a windows machine, the telnet client hangs when a username and password are given to login: require 'net/telnet' tn= Net::Telnet.new({'Host'=>'nara'}) {|str| print str} tn.login('oda_nobunaga','super-sword') In the code it appears that the request for a ¡Èpassword¡É is not being recognized. Changing the password to be case insensitive fixes the problem. Origional: module Net ... class Telnet < SimpleDelegator ... def login(options, password = nil) # :yield: recvdata login_prompt = /[Ll]ogin[: ]*\z/n password_prompt = /Password[: ]*\z/n ... ----------------------------- Change ------------------- def login(options, password = nil) # :yield: recvdata login_prompt = /[Ll]ogin[: ]*\z/n password_prompt = /[pP]assword[: ]*\z/n <==== change here ... ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=1698&aid=10746&group_id=426