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

Change status to:
Edit | Attach | Watch | Print version | History: r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r3 - 2008-01-18 - 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.