Tags:
create new tag
view all tags

Question

I am trying to add a wiki to an existing website which has sections that require a login using apache .htaccess and password files. I would like it so that if a user logs into the site then they also login to the Wiki automatically. i.e. each user would not need a separate login for both the wiki and the restricted areas of the site. Has anyone tried to do something similar with TWiki and if so how did you go about it?

I have currently put the htaccess file in the TWiki directory and a password box pops up, but TWiki still thinks I am logged in as TWikiGuest. I followed the installation instructions, but they seem to be out of date.

Environment

TWiki version: TWikiRelease01Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Red Hat Linux
Web server: 2.0.46
Perl version: 5.8.0
Client OS: MS Windows 2003
Web Browser: Internet Explorer 6.0

-- TWikiGuest - 15 Sep 2004

Answer

Link the TWiki password file in data/.htpasswd to your existing passwordfile.

If you don't use the option with identification by IP address you will always see TWikiGuest as the user when viewing topics. If you choose to edit the topic the WIKIUSER changes to your login user. Test it. That is because of the view script doesn't need authentication, so there is no authentication information from the webserver. The edit script is authenticated and the webserver will know the authenticated user. I think this is already explained in other places. Another and better solution than the one with IP address is to install one of the Sessionplugins. The WIKIUSER is then identified by session information.

-- MarkusKolb - 15 Sep 2004

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2004-09-15 - MarkusKolb
 
  • 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.