This happens on my home installation on the latest MAIN branch (and on previous TWikiRelease04x00 branch). I have not changed anything on my setup recently, but as a authenticated user I am identified as TWikiGuest in TWiki since the end of Sep 2006.
I am using basic authentication on all files in twiki/bin, content of twiki/bin/.htaccss:
Order Allow,Deny
Allow from all
SetHandler cgi-script
AuthUserFile /path/to/twiki/data/.htpasswd
AuthName 'Enter your WikiName: (First name and last name, no space, no dots, capitalized, e.g. JohnSmith). Cancel to register if you do not have one.'
AuthType Basic
ErrorDocument 401 /error.html
Options -Indexes
<FilesMatch "configure.*">
require user "PeterThoeny"
</FilesMatch>
<FilesMatch ".*">
require valid-user
</FilesMatch>
Basic auth is working properly (I am asked to login)
Relevant LocalSite.cfg settings:
$TWiki::cfg{UseClientSessions} = 0;
$TWiki::cfg{Sessions}{Dir} = '/tmp';
$TWiki::cfg{Sessions}{ExpireAfter} = 21600;
$TWiki::cfg{Sessions}{IDsInURLs} = 0;
$TWiki::cfg{Sessions}{UseIPMatching} = 1;
$TWiki::cfg{Sessions}{MapIP2SID} = 0;
$TWiki::cfg{LoginManager} = 'none';http://develop.twiki.org/~twiki4/cgi-bin/view/Sandbox/JSCalendarTest?skin=classic
$TWiki::cfg{DefaultUserLogin} = 'guest';
$TWiki::cfg{DefaultUserWikiName} = 'TWikiGuest';
$TWiki::cfg{AuthScripts} = 'attach,edit,manage,rename,save,upload,viewauth,rdiffauth';
$TWiki::cfg{AuthRealm} = 'Enter your TWiki.LoginName. (Typically First name and last name, no space, no dots, capitalized, e.g. !JohnSmith, unless you chose otherwise). Visit TWiki.TWikiRegistration if you do not have one.';
$TWiki::cfg{PasswordManager} = 'TWiki::Users::HtPasswdUser';
$TWiki::cfg{MinPasswordLength} = 1;
$TWiki::cfg{Htpasswd}{FileName} = '/path/to/twiki/data/.htpasswd';
$TWiki::cfg{Htpasswd}{Encoding} = 'crypt';
$TWiki::cfg{UserMappingManager} = 'TWiki::Users::TWikiUserMapping';
$TWiki::cfg{LeaseLength} = 3600;
$TWiki::cfg{LeaseLengthLessForceful} = 3600;
$TWiki::cfg{MapUserToWikiName} = 1;
A Cairo installation pointing to the same data works as expected.
--
PTh
You have not set a login manager, so TWiki doesn't know how to obtain a username for you.
Set the login manager to
ApacheLogin
. 'none' means you are not using any logins.
Please discard this report when you are happy that it works as documented. Thanks.
CC
Yep, that was it, thanks.
I did not change anything in configure recently, meaning that authenticated users in 4.0.2 used to be identified even with login manager set to 'none'; but not anymore with the latest TWiki. (In fact, I have another working 4.0.2 installations with identical setup and login manager set to 'none'.)
--
PTh