Tags:
create new tag
view all tags

Question

How to make a basic authentication work?

I can't seem to get passed the Login Prompt. It keeps prompting for password. I followed the exact steps in TWikiInstallationGuide and TWikiAccessControl step by step, and still can't make it work. - The Registration part worked fine. It took my new Wikiname, and inserted the password in /twiki/data/.htpasswd. - However, I failed to Login as if the password didn't exist for this user. - I also switched the the method to "plain" to make sure that the correct password get saved, and it did.

# vi /twiki/lib/TWiki.cfg

if( $OS eq "WINDOWS" ) { $htpasswdEncoding = "plain";

Correct file permission is verified: $ ls -l .ht* -rw-r--r-- 1 SYSTEM None 516 Sep 28 11:32 .htaccess -rw-rw-rw- 1 SYSTEM None 101 Sep 28 16:32 .htpasswd

$ cat .htpasswd TWikiGuest:zK.G.uuPi39Qg DongDo3:{SHA}+pvrmeQCmtWmYVOZ57uuITVghrM= DongDo2:myplaintextpw

What else am I missing? i can't log on using neither DongDo3 or DongDo2 (with sha1 or plain method accordingly). Thanks in advance.

Environment

TWiki version: TWikiBetaRelease2004x10x30
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Windows XP Sp2
Web server: Apache 2.0.48
Perl version: 5.9
Client OS: Windows XP SP2
Web Browser: IE6
Categories: Htaccess, Authentication

-- DongDo - 29 Sep 2005

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.

You need to also reference :

-- SteveRJones - 29 Sep 2005

Edit | Attach | Watch | Print version | History: r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r2 - 2005-09-29 - SteveRJones
 
  • 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.