Tags:
create new tag
view all tags

Question

I have read all of the topics I could find on this, and just can't get it to work.

I am trying to implement Basic optional acess control. That is I want to define twiki users and if they want to user their twiki name they can, else they can just be twikiguest. When I create a user, it creates ok but I get an error page below: Attention

Send Mail Error

The e-mail could not be delivered. Please notify your TWiki administrator, webmaster@yourPLEASENOSPAM.company

ERROR: Can't send mail using Net::SMTP (can't connect to 'mail') OK

I have the following in .../bin/.htaccess (the rest is standard)

# Password file for TWiki users
#

#Authentication type (htpasswd file) (comment out this if you configure htpasswd / LDAP support)
AuthUserFile /var/www/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

If I try the changepassword form it says the twikiname I am trying to find is not found, yet if I click right on over to the TwikiUsers the name shows up. When I manually look at the htpasswd file it has one line with twikiguest in it. If I Try to login it prompts for a userid and password, and I cant enter a password.

This is behind a firewall and cant surface to the world right now....any help appreciated, I would like to deploy, but want to get admin right first.

thaanx brad taylor

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: linux
Web server: Apache/2.0.40 (Red Hat Linux)
Perl version: 5.8.6
Client OS: windows xp pro
Web Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Categories: Authentication

-- BradTaylor - 12 Jan 2005

Answer

there are likely two (or more) problems here, 1) is that twiki can't find your mail server (I don't know much about this one, you'll have to wait for someone else to chime in). But that won't stop new users from regsistering, they just won't recieve the welcome message and won't be able to use the change/reset password form;

2) sounds like apache and/or twiki can't locate the .htpasswd file (else there would be more entries than just 'TWikiGuest').

  • Look at the apache error log and the also the logs (*.txt) in the twiki/data directory. They might have some informative error messages.
  • is the path /var/www/twiki/data/.htpasswd correct?
  • what are the permissions on the .htpasswd file? Perhaps apache can't write to it in order to add new users.

-- MattWilkie - 13 Jan 2005

Well I am not sure what I did, but I tried a bunch of different stuff and eventually got it to work. I probably did not read the details of the basic authorization very well and tried to move too quickly. I did modify /bin/register to not to attempt to send email, by commenting out the code that did it. It looks like it would be useful to have a variable for that. I could not see how to easily set one in TWiki.cfg and then reference it in register. I will leave this here for now, and move it in a day or two.

thanx brad taylor

-- BradTaylor - 14 Jan 2005

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