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
--
DongDo - 29 Sep 2005
Answer
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