1. 13 Jun, 2006 1 commit
  2. 06 Mar, 2006 1 commit
  3. 04 Oct, 2005 1 commit
  4. 30 Sep, 2005 1 commit
  5. 13 Sep, 2005 1 commit
  6. 01 Sep, 2005 1 commit
  7. 18 Aug, 2005 1 commit
  8. 22 Jun, 2005 1 commit
  9. 28 Mar, 2005 1 commit
    • Leigh B. Stoller's avatar
      Implement a cross machine login so that user is automatically logged · 9310dedb
      Leigh B. Stoller authored
      into the Wiki when clicking on the My Wiki's link. Works like this:
      
      * The My Wiki's link points to new page, gotowiki.php3, on boss.
      
      * The gotowiki page looks for a new cookie in the user's browser
        which holds a key (the usual random data run through md5).
      
      * If the key does not exist, generate it and store it in the user
        browser (expires when browser is closed or emulab login times out).
        Also invoke backend script wikixlogin, which will send the key over
        to the wiki server (via ssh), which will write the key into a file
        named by the user account.
      
      * The user's browser is redirected to the wiki server's login script
        (twiki/bin/newlogon), but instead of username and password, we send
        over username and key (as well as redurl= parameter which is the
        page on the wiki server to redirect to later).
      
      * The new login script looks for this case, and opens the file named
        by the user and compares the key it gets with what is in the file.
        If they match, the user login succeeds and the browser is once again
        redirected, but this time to the page it wants on the wiki server.
        If the key does not match, the browser is redirected to the login
        page (so user can enter username password normally). The redurl
        parameter is passed along as well.
      
      * Subsequent clicks on My Wiki's will not need to invoke the backend
        script, since the cookie will be in the browser.
      9310dedb
  10. 24 Mar, 2005 2 commits
  11. 21 Mar, 2005 1 commit
    • Leigh B. Stoller's avatar
      Aside from some cosmetic changes and some bug fixes. · 9137350e
      Leigh B. Stoller authored
      The main change is that I now add an .htpasswd entry for the user's
      emulab ID (stoller) in addition to the wikiname (LeighStoller). I also
      create a mapping file (with perl dbmopen) to map from the Emulab ID to
      the WikiName. This lets people log in using their Emulab ID, which is
      pretty much required since we cannot pass the token to http basic auth
      when it puts up the dialog box. Without this, we will forever be
      answering questions from confused users.
      
      TWiki already had something of a mapping mechanism, but it was broken
      and horribly inefficient, so I ended up whacking the twiki code to
      make it work with the above mentioned dbm file.
      9137350e
  12. 20 Mar, 2005 1 commit