We user the
TemplateLogin-method to authenticate users to our twiki. But we also use HTTP-Basic-Auth to restrict access to the whole web-root.
Desired behaviour: When accessing our wiki (or any other page), first one has to enter the Basic-Auth user and password and then gets to the Main-Web. There, the user can (but does not have to) login with his TWiki-account.
Problem: TWiki claims to be logged-in with the basic-auth-username instead of showing the login-button (although there is no TWiki-account with this name). Logout does also not work. So it is impossible to login with an proper TWiki-account.
Workaround: in twiki/lib/TWiki/Engine/CGI.pm I commented out line 80 ("$req->remoteUser( $ENV{REMOTE_USER} );" in function prepareHeaders() ). I did not properly test this but it works for us without drawbacks. This might have side-effects!
--
TWiki:Main/PhilippLowack
- 2011-01-11