• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

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 ".*">
       require valid-user

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.


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

Summary TWiki shows TWikiGuest user for user authenticated with Basic Auth
ReportedBy TWiki:Main.PeterThoeny
Codebase ~twiki4
SVN Range TWiki-4.1, Sun, 08 Oct 2006, build 11688
AppliesTo Engine

Priority Urgent
CurrentState No Action Required


TargetRelease n/a
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r5 - 2006-11-14 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback