Question
i have made a twiki page on my server
http://example.com/bin/view/CDFInnovation.
Whenever a user clicks the above url he directly sees the page but
i want whenever a user clicks the url he first gets a page which asks for username and password and only registered users after giving correct username and password can view the page.How do i do it?please help.
Environment
--
MayankJain - 17 Jan 2008
Answer
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.
An easy start would be to add the
view script to the list
{AuthScripts} in
/bin/configure (Section Security setup, subsection Authentication). If your web server and authentication are set up correctly, this should do the trick.
However, this would give you a deadlock since people would need to register for a user id, and simultaneously need a user id to view the registration screen. So you would need to make a static copy of the registration page (TWiki.TWikiRegistration), which can be viewed unauthenticated.
For sake of completeness, you might want to add other scripts in
bin to the list, but make sure to
not add
register.
--
HaraldJoerg - 17 Jan 2008
In a corporate setting I suggest to authenticate against your corproate directory (LDAP or AD). You can do that on the Apache level, or use the
LdapContrib.
--
PeterThoeny - 18 Jan 2008