Tags:
create new tag
view all tags

Question

I've gone through the installation instructions and the basic authentication instructions, but I'm having trouble getting past the authentication dialog. I've added a couple users. They show up correctly in the .htpasswd file. When I go to edit a page, I get the authentication dialog, but it always tells me my password is incorrect.

I looked through the other answered questions relating to authentication. As a result, I've tried using htpasswd to change the password for a user. This made no difference. I checked and double-checked the .htpasswd path in my .htaccess file. I also checked the .htpasswd file permissions. Everything looks dandy.

Here is the entry in the Apache access-log after a failed authentication:

[IP Address] - EricRunquist [01/Jan/2002:13:43:19 -0600] "GET /cgi-bin/edit/Main/EricRunquist HTTP/1.0" 401 2352

Here is my .htaccess file (from /home/foobar/www/cgi-bin):

Redirect /TWiki/index.html http://www.foobar.com/cgi-bin/view

AuthUserFile /home/foobar/TWiki/data/.htpasswd
AuthName ByPassword
AuthType Basic

SetHandler cgi-script

ErrorDocument 401 /cgi-bin/oops/TWiki/TWikiRegistration?template=oopsauth


...

Thanks for any help! EricRunquist

  • TWiki version: 20010901
  • Web server: Apache/1.3.19
  • Server OS: RedHat 6.2, or 6.1 - not sure
  • Web browser: Netscape Navigator 4.7
  • Client OS: Win95

-- EricRunquist - 30 Dec 2001

Answer

Not sure what is wrong. Double check the case, is it /home/foobar/TWiki/data/.htpasswd or /home/foobar/twiki/data/.htpasswd? Also, check the Apache error log.

-- PeterThoeny - 06 Jan 2002

It turned out that authentication won't work for me if the htpasswd file isn't in a parent directory of the .htaccess file. When the password file is in /home/foobar it works. When it is in /home/foobar/TWiki/data it does not work. I made sure the .htaccess file had the right settings and the directory permissions were identical.

-- EricRunquist - 17 Jan 2002

I had a inconvenient with authentication using Red Hat 6.1. My problem was caused simply because I didn't read carefully that it was needed to copy by hand the encrypted password to the /twiki/directory/data/.htaccess file. I don't know if this is your situation.

-- PabloChamorro - 18 Jan 2002

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2002-01-18 - PabloChamorro
 
  • 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.