Tags:
create new tag
view all tags

Question

I'm trying to setup access control and user authentication. The server-side authentication works, I need to enter my name/password when trying to acces any page. But TWiki doesn't recognize that I'm logging in, %WIKIUSERNAME% is always TWikiGuest. Clicking the login button in the sidebar just does nothing.

What's a little confusing is that view and viewauth are the exact same script, so it's not clear why it is supposed to make a difference which one is used.

Environment

TWiki version: TWikiBetaRelease2004x10x30
TWiki plugins: CommentPlugin, DefaultPlugin, EditTablePlugin, EmptyPlugin, InterwikiPlugin, RenderListPlugin, SlideShowPlugin, SmiliesPlugin, SpreadSheetPlugin, TablePlugin
Server OS: RHEL4
Web server: Apache/2.0.52
Perl version: 5.8.5
Client OS: FC3
Web Browser: Opera 8.01
Categories: Authentication, Authorisation

-- DirkReiners - 26 Aug 2005

Answer

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.

That DirkReiners in the description should be the WIKIUSERNAME variable.

-- DirkReiners - 26 Aug 2005

You need to authenticate the viewauth script. If you want to track users for the non-authenticated view script you need to use cookies or enable IP-address based tracking. See TWikiUserAuthentication, Partial Authentication.

-- PeterThoeny - 26 Aug 2005

I'm a little confused about the 'authenticate the viewauth script' part. The whole directory is protected, you need to have a password for everything in there. Just for testing I removed the view script, but that didn't change anything (didn't expect it to).

The URL is http://www.vrac.iastate.edu/cgi-bin/dreiners/twiki/viewauth. I added an account for you with password guest. After logging in the sidebar still says 'login', clicking which doesn't do anything. In the Sandbox is a test topic with a WIKIUSERNAME, which will be TWikiGuest, even though you logged in as PeterThoeny. That's where I'm lost. frown

Thanks for your quick response!

-- DirkReiners - 26 Aug 2005

The 'authenticate the viewauth script' part is an Apache web server configuration thingy. Please do that in the Apache config file or in the cgi-bin's .htaccess. See TWikiInstallationGuide and consult the Apache docs.

-- PeterThoeny - 27 Aug 2005

Topic attachments
I Attachment History Action Size Date Who Comment
Unknown file formatcfg TWiki.cfg r1 manage 23.1 K 2005-08-26 - 22:23 UnknownUser TWiki.cfg
HTMLhtm testenv.htm r1 manage 11.8 K 2005-08-26 - 22:19 UnknownUser Testenv Output
Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2005-10-01 - PeterThoeny
 
  • 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.