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
--
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