Tags:
create new tag
, view all tags

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

TWiki version: unspecified
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS:  
Web server:  
Perl version:  
Client OS:  
Web Browser:  
Categories:  

-- MayankJain - 17 Jan 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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

 
Change status to:
Topic revision: r3 - 2008-01-18 - PeterThoeny
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.