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