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
--
JohnMichelau - 03 Dec 2006
Answer
If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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