Tags:
create new tag
view all tags

SID-00266: Twiki Authentication doesn't work properly

Status: Answered Answered TWiki version: 4.3.0 Perl version: 5.8.5
Category: CategoryAuthentication Server OS: Centos 4.7 final Last update: 16 years ago

Hi. Twiki 4.3.0 I have .htpasswd file which include users (like this: abcde:xxxxxxxxxxxx:abcde@example.com)

I set authentication over .htpasswd and it works okay. Users can login fine, but when user changed his personal sidebar, sidebar isn't changing, they see 'create personal sidebar' again, they didn't get any errors

After that i've changed my .htpasswd file like this: (Abcde:xxxxxxxxxxxx:abcde@example.com) And it solved problem, user can change his personal sidebar. I connect this situation with WikiUserName and map.

Question: How can I make authentication properly, don't touch .htpasswd file?

-- VladimirGlazachev - 2009-04-14

Discussion and Answer

It seems that WIKINAME in your TWiki installation is not returning a camel case word, that is the name of the user as a valid link.

You may try to insert something before the WIKNAME call in TWiki.WebLeftBarLogin to enforce a camel case word. See this example where a SafeLink string have been added.

%STARTINCLUDE%<div class="patternLeftBarPersonal">
%IF{"context authenticated" then='%MAKETEXT{"Hello [_1]!" 
args="[[%WIKIUSERNAME%][%SPACEOUT{%WIKINAME%}%]]"}%%BR%%LOGOUT%' 
else='%LOGIN% %MAKETEXT{"or"}% [[%TWIKIWEB%.TWikiRegistration][%MAKETEXT{"Register"}%]]'}%
<div class="patternLeftBarPersonalContent">%INCLUDE{"%MAINWEB%.SafeLink%WIKINAME%LeftBar" 
warn="<a href=\"%SCRIPTURLPATH{"edit"}%/%MAINWEB%/SafeLink%WIKINAME%LeftBar?templatetopic=
%TWIKIWEB%.WebLeftBarPersonalTemplate&amp;topicparent=WebHome\">
%MAKETEXT{"Create personal sidebar"}%</a>"}%</div></div>

-- EnriqueCadalso - 2009-04-14

Enrique Thanks a lot! It works FINE. Thank you very much

-- VladimirGlazachev - 2009-04-14

      Change status to:
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.
SupportForm
Status Answered
Title Twiki Authentication doesn't work properly
SupportCategory CategoryAuthentication
TWiki version 4.3.0
Server OS Centos 4.7 final
Web server Apache 2.2
Perl version 5.8.5
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2009-04-14 - VladimirGlazachev
 
  • 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.