[tor-bugs] #3958 [Torctl]: pytorctl should learn to try both CookieAuth and PasswordAuth

Tor Bug Tracker & Wiki torproject-admin at torproject.org
Wed Sep 7 23:49:25 UTC 2011


#3958: pytorctl should learn to try both CookieAuth and PasswordAuth
--------------------+-------------------------------------------------------
 Reporter:  arma    |          Owner:  atagar  
     Type:  defect  |         Status:  assigned
 Priority:  normal  |      Milestone:          
Component:  Torctl  |        Version:          
 Keywords:          |         Parent:          
   Points:          |   Actualpoints:          
--------------------+-------------------------------------------------------
Changes (by atagar):

  * owner:  => atagar
  * status:  new => assigned


Comment:

 Not quite. TorCtl tries the *first* authentication type present in the
 'METHODS=' entry. Iirc this is COOKIE if both are offered so it'll have
 the same issue that's discussed in 3898.

 When both are offered we should:
 1. try the password if we already have it at that point in execution (ie,
 it's an arg to connect)
 2. attempt to read the cookie file and use that
 3. prompt the user for a password

 This attempts in order of relative attempt speed, prompting the user as a
 last resort.

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/3958#comment:1>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list