Is there any way to know if the module is runnung? I put the .pm file
inside /usr/lib/perl5/site_perl/5.005/i386-linux (that's where Apache.pm
is) and then put:
AuthType Basic
AuthName "Name of the Authentcation Realm"
require valid-user
PerlAuthenHandler AuthAny
on the <Location /auth> part of the site, but it's not working.. I don't
get errors, and it doesn't accept the authentication (it authenticates
against /etc/shadow, like a normal protection).
Any idea?
Thanks! bye..
Ariel.
At 15:26 13/06/2000 -0400, darren chamberlain wrote:
>Ariel Manzur ([EMAIL PROTECTED]) said something to this effect:
>> Hi.. this is very helpful.. thanks.. :-)
>>
>> Now, I have one last question. Where do I put the "pachage Test::AuthAny"
>code?
>
>Make a Perl library directory that you want to store all of your Perl
>modules in, for example, /www/lib. In your scripts, stick a line
>
>use lib '/www/lib';
>
>at the beginning to use this directory, and in a <Perl> section in your
>httpd.conf.
>
>Package names reflect filesystem hierarchy -- Test::AuthAny is in a
>directory called Test, in a file called AuthAny.pm. Test lives in
>any directory that is in the special array @INC (which use lib
>modifies by prepending to @INC). An example:
>
>(bash) $ perl -e 'print join "\n",@INC;'
>/usr/local/perl/5.6.0/lib/5.6.0/i686-linux
>/usr/local/perl/5.6.0/lib/5.6.0
>/usr/local/perl/5.6.0/lib/site_perl/5.6.0/i686-linux
>/usr/local/perl/5.6.0/lib/site_perl/5.6.0
>/usr/local/perl/5.6.0/lib/site_perl
>.
>(bash) $ perl
>use lib '/www/lib';
>print join "\n",@INC;
>/www/lib
>/usr/local/perl/5.6.0/lib/5.6.0/i686-linux
>/usr/local/perl/5.6.0/lib/5.6.0
>/usr/local/perl/5.6.0/lib/site_perl/5.6.0/i686-linux
>/usr/local/perl/5.6.0/lib/site_perl/5.6.0
>/usr/local/perl/5.6.0/lib/site_perl
>.
>
>Put your code (assuming use lib /www/lib) in /www/lib/Test/AuthAny.pm, make
>sure the
>appropriate use lib lines are in your <Perl> sections in your httpd, and you
>will be
>OK.
>
>Try perldoc lib for info on the use lib pragma.
>
>Good luck.
>
>darren
>
>--
>A theory is not accepted when it's critics are converted, but when they
>eventually die.
> -- Maxwell Plank