SID-00266: Twiki Authentication doesn't work properly
| Status: |
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&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
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.