Tags:
create new tag
view all tags

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):

  1. Comment out the AuthUserFile and AuthName lines (or remove them)
  2. Change AuthType Basic to AuthType NTLM
  3. Add a line below that one that says NTLMAuth On
  4. 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

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