|
From: Rob H. <ro...@ro...> - 2003-07-15 18:50:30
|
On Mon, Jul 14, 2003 at 05:09:20PM -0600, Eric Swenson wrote:
> Allright,
>
> 1) Added Unix.pm and applied the patch successfully, and now I'm getting:
> *******************************
> t/auth.t 3 1 33.33% 3
> Failed 1/3 test scripts, 66.67% okay. 1/30 subtests failed, 96.67% okay.
> make: *** [test_dynamic] Error 29
> *****************************************
That's ok, this patch is pretty raw. There isn't a test for Unix auth
yet.
BTW, just for anyone reading the sandweb-users list, this is an
experimental patch we're trying to get working. You shouldn't have this
much trouble with the latest RC :)
> 2) The group patch added the block in sandweb.cgi to do the toolbar right
> before $image_dir is defined. I moved the following line of code on line
> 1408 in my patched sandweb.cgi up above that new block of code:
>
> my $image_dir = $config->{'webserver'}->{'image_dir'};
Hmm.. that's weird. I'll check my version again, but mine seems to be
working ok. Were you not getting images in the toolbar?
> 3) I can't seem to logon, still... this may be related to the auth system
> looking in the wrong location for the user_dirs, which I have set to
> /usr/local/sandweb/share/users (and confirmed in sandweb.cfg), but I'm
> getting the following logfile when I try to login:
>
> LOG: Invalid login attempt, username: null
> LOG: Invalid login attempt, username: reiuser
> LOG: reiuser logged on.
> LOG: reiuser logged on.
> ERROR: Unable to write to file
> '/var/www/sandweb/share/users/reiuser/.user.cfg': Permission denied
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> LOG: reiuser logged on.
> LOG: reiuser logged on.
> LOG: Invalid login attempt, username: eric
>
> Anyway, I trield creating user directories there and make sure they were
> writable by the apache user, but still no go.
Yeah, you have to create that dir by hand.. Interesting that it's saying
"reiuser logged on", seems to indicate that it's working. Dunno why
you're getting two logs of everything.
Do you know about the debug setting in sandweb.cfg ? It sends extra
debug output to the browser and to the log file; if it's still not
working try with debug on and send the output.
You sure /var/www/sandweb/share/users/reiuser/ exists and is writable by
the Apache user? That should be all there is to it. Does .user.cfg exist
in that directory?
BTW "/var/www/sandweb/share" isn't a good place to have the users stuff;
there are things in there you definitely don't want browsable. The
default of "/usr/local/share" is more secure.
> 4) You're sure awfully helpful. Is there a book on Amazon that I can toss
> your way? =-)
Heh.. oh, I don't know. I get alot of enjoyment from this stuff,
although I have been wanting to get the next Dune book I haven't read (Heretics
of Dune). I'd prefer a used copy, since I am really into recycling/reuse. I've
been using the library alot lately but their selection isn't always so
hot.
Thanks,
Rob
|