Tags:
create new tag
view all tags

Question

How do I go about setting a password for TWikiGuest? I see it listed as a solution for closing access to registration, but nobody explains how to do it. I don't know the existing login/password, so using ChangePassword won't work. There's no email address set for TWikiGuest, so I can't use ResetPassword. I'm not really sure how to use InstallPassword at all, because it requires me to generate the encrypted password myself. I'm using SHA1 auth.

Environment

TWiki version: TWikiRelease04x00x05
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Win XP SP2
Web server: Apache 2
Perl version: 5.8.8
Client OS: Win XP SP2
Web Browser: Firefox 2
Categories: Authentication

-- JohnMichelau - 03 Dec 2006

Answer

ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.

I found that the login for TWikiGuest is 'guest', from Twiki.cfg. I used htpasswd.exe to generate a password for guest and manually placed it in my .htpasswd.txt file. This made it so that the TWikiGuest had a password, but my TWiki didn't really login TWikiGuest properly. After logging in, the left bar still showed "Log In" and "Register". Also, it continued to allow the TWikiGuest to view sites without logging in (I think the issues are related).

As a workaround, I created a new user, RegisterMe, and gave it a password. It's purpose is such that I will give out the RegisterMe name and password to whomever I would like to be able to register. I then set DENYWEBVIEW for TWikiGuest in all webs.

I'm still going to leave this open for a couple days to see if anybody has any comments on my solution, and why my original effort didn't work as expected.

-- JohnMichelau - 03 Dec 2006

in the htpasswd.txt, the format is... name:pass

also, the login problem sounds like sessions are not set correctly in the configure

try this... {UseClientSessions} = 1 {Sessions}{Dir} = /path/for/sessions {Sessions}{UseIPMatching} = 1 {PasswordManager} = HtpasswdUser

-- SteveStark - 04 Dec 2006

Change status to:
Topic attachments
I Attachment History Action Size Date Who Comment
HTMLhtm configure.cgi.htm r1 manage 144.6 K 2006-12-03 - 18:41 UnknownUser JohnMichelau Twiki config
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2006-12-04 - SteveStark
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.