Question
Hi. I have recently installed twiki and have successfully managed to get most of the things working - except basic authentication.
So I downloaded an Apache module which uses NTLM for authentication alternatively and that is working fine.
Installation-steps:
- Put mod_ntlm.so into c:\Apache\modules\
- Edit c:\Apache\conf\httpd.conf as follows:
1. At the end of the list of
LoadModule commands (they're probably all commented out), add the line:
LoadModule ntlm_module modules/mod_ntlm.so
2.At the end of the list of
AddModule commands add the line:
AddModule mod_ntlm.c
- Restart Apache.
- Edit c:\twiki\bin\.htaccess as follows (example below):
- Comment out the AuthUserFile and AuthName lines (or remove them)
- Change AuthType Basic to AuthType NTLM
- Add a line below that one that says NTLMAuth On
- Add a line below that one that says NTLMAuthoritative On
But I'd rather have the basic authentification working. I followed the instructions in the
TWikiInstallationGuide and renamed the
TWikiRegistrationPub to
TWikiRegistration. But I get an internal server error every time I try to access the twiki.
That's the Apache error log output:
c:/twiki/bin/.htaccess: Invalid auth file type.
And that's the content of my .htaccess file:
AuthUserFile "c:/twiki/data/.htpasswd";
AuthName 'Enter your WikiName: (First name and last name, no space, no dots, capitalized, e.g. JohnSmith). Cancel to register if you do not have one.'
AuthType Basic
Environment
| TWiki version: |
TWikiRelease01Sep2004 |
| TWiki plugins: |
|
| Server OS: |
|
| Web server: |
Apache 1.3 |
| Perl version: |
5.6.1 |
| Client OS: |
Windows NT |
| Web Browser: |
IE |
--
AndreaLazarescu - 07 Oct 2004
Answer
added verbatim tags to Andrea's post to make things a little easier to read
For more info on using NTLM, see
WindowsInstallModNTLM and
LoginNameAndNtlm (in case you change your mind about using it).
I'm not an apache expert, but try doublecheck and make sure that the AuthUserFile is .htpasswd and not .htaccess.
If it is .htpasswd, try moving/renaming the file to something else (so that apache creates a new one. this is to check for a corrupt password file). If that it isn't it, try going back to the original .htaccess file and start over. It sounds like a typo or something.
--
MattWilkie - 14 Oct 2004