Tags:
create new tag
view all tags

Question

I still can't get the automatic registration to work.

I've followed the instruction in the documentation to the letter, checked it, rechecked it, and rechecked it again

I've copied TWikiRegistrationPub.txt and TWikiRegistrationPub.txt,v to TWikiRegistration.txt and TWikiRegistration.txt,v

I've copied .htaccess.txt to .htaccess and modified .htaccess in the bin directory to: Redirect /twiki/index.html http://jecinc.dns2go.com/twiki/bin/view

AuthUserFile /usr/local/apache/htdocs/twiki/data/.htpasswd AuthName ByPassword AuthType Basic

SetHandler cgi-script

ErrorDocument 401 /twiki/bin/view/TWiki/TWikiRegistration

and since I couldn't get that to work, I did a chown -R nobody.nobody * and a chmod -R 777 nobody.nobody * from the /usr/local/apache/htdocs/twiki directory - still no luck

The Registration page comes up as expected, but when you hit submit, it asks for a name and password and won't accept the one just created. Using htpasswd at the command prompt allows me to add a user that can get access.

Any ideas?

  • TWiki version: Twiki-20001201
  • Web server: Apache 1.3.20
  • Server OS: Slackware Linux 7.0

-- BrianJohnson - 25 Jul 2001

Answer

There is a known AuthenticatedRegistrationBug where hitting submit in the registration asks for login which prevents you from registering. This happens if you get redirected to the registration form after a failed authentication. It should work if you go to the registration form the "normal way" by following the link from the WebHome of the TWiki web.

In case thatdoes not work, check if twiki/data/.htpasswd is writable by the cgi user ("nobody" on many systems, run the testenv cgi program to find out). Check if the user gets added to twiki/data/.htpasswd after registration.

-- PeterThoeny - 26 Jul 2001

That was it! Terrific - I'll change my Error page to a new one just to link through to the registration page

-- BrianJohnson - 26 Jul 2001

Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2003-11-10 - TomChiverton
 
  • 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.