Re: Apache2::Request in PerlInitHandler and PerlAuthenHandler

2008-10-14 Thread Shibi NS
Sorry I forgot this info, platform (Unix) : Red Hat Enterprise Linux AS release 3 (Taroon Update 8) Apache/2.2.9 mod_perl/2.0.4 CGI.pm version 3.15 Shibi Ns Perl/v5.8.8 On Tue, Oct 14, 2008 at 2:42 PM, André Warnier <[EMAIL PROTECTED]> wrote: > Hi. > > It usually helps for any kind of support

Re: sethandlers question

2008-10-14 Thread Torsten Foertsch
On Tue 14 Oct 2008, André Warnier wrote: > At this moment, I cannot see clearly how the ErrorDocument solution > would allow me to send back a login page created dynamically, as I > need to do.  I will look it up, but as a definitive solution for the > time being I would prefer the $r->internal_red

Re: Apache2::Request in PerlInitHandler and PerlAuthenHandler

2008-10-14 Thread Perrin Harkins
On Tue, Oct 14, 2008 at 4:28 AM, Shibi NS <[EMAIL PROTECTED]> wrote: > my $req_params = $req->args; > my $cgi= CGI->new($req_params); There's no need to do that. Just call CGI->new(). And make sure you have the latest version of CGI.pm from CPAN. - Perrin

Re: PerlSetVar to empty

2008-10-14 Thread Perrin Harkins
On Tue, Oct 14, 2008 at 10:03 AM, André Warnier <[EMAIL PROTECTED]> wrote: > , but in a a specific , I would like to reset this to > > PerlSetVar myvar "" I've never done this, but did you try undef? Or maybe 0, if you just want to test for true. - Perrin

Re: sethandlers question

2008-10-14 Thread André Warnier
Torsten Foertsch wrote: [...] The apache-way to do this has a name: ErrorDocument or in mod_perl $r->custom_response. Configure an ErrorDocument for 403 and return HTTP_FORBIDDEN in your A...Handler. That has the benefit that the 403 status is logged and that the browser (think about search eng

Re: sethandlers question

2008-10-14 Thread Torsten Foertsch
On Tue 14 Oct 2008, André Warnier wrote: > I doubly appreciate not only because my immediate problem is solved, > but also because I learned a lot in the process. Try the $r->add_config again with the right override flag (OR_FILEINFO) and you'll see it will also work. > It seems to me that this

Re: sethandlers question

2008-10-14 Thread André Warnier
André Warnier wrote: I am trying the 4 receipes one after the other, in order of easiest to more complicated. Torsten Foertsch wrote: 2) replace $r->handler('modperl') in the aaa phase by $r->add_config(['SetHandler modperl']). This way you override the handler set in the configuration stru

Re: [OT] Converting PDF file to text (UNCLASSIFIED)

2008-10-14 Thread Clinton Gormley
Hi Gordon > Hi all, > > I need to know how to convert PDF files to a text file using Perl. This has nothing to do with mod_perl - a better place to look for general Perl support is on http://www.perlmonks.org. Here's a node on PM that may help: http://www.perlmonks.org/index.pl?node_id=676954

Re: sethandlers question

2008-10-14 Thread Torsten Foertsch
On Tue 14 Oct 2008, André Warnier wrote: > When I try this, I get an Apache error with the following logfile > message : [Tue Oct 14 16:10:40 2008] [error] [client 84.158.163.207] > $r->add_config() has failed: SetHandler not allowed here at > /usr/local/lib/apache2/perllib/AUTH/StarLogCookie.pm li

Converting PDF file to text (UNCLASSIFIED)

2008-10-14 Thread Robertson, Gordon H CIV DISA GES-E
Classification: UNCLASSIFIED Caveats: NONE Hi all, I need to know how to convert PDF files to a text file using Perl. Gordon Classification: UNCLASSIFIED Caveats: NONE

Re: [MP2] Problem when defining new directives in a container

2008-10-14 Thread titetluc titetluc
Any ideas ? Gaetan 2008/10/7 titetluc titetluc <[EMAIL PROTECTED]> > Hello all, > > I am developing a new module which defines 2 new directives (TestDirective1 > and TestDirective2). These directives are usable in a container (Location, > Directory, ...). > The following code defines the directi

Re: sethandlers question

2008-10-14 Thread André Warnier
I am trying the 4 receipes one after the other, in order of easiest to more complicated. Torsten Foertsch wrote: 2) replace $r->handler('modperl') in the aaa phase by $r->add_config(['SetHandler modperl']). This way you override the handler set in the configuration structure. In the fixup ph

PerlSetVar to empty

2008-10-14 Thread André Warnier
Hi. Ref : Apache/2.2.3 (Debian) DAV/2 SVN/1.4.2 mod_jk/1.2.18 PHP/4.4.4-8+etch4 mod_ssl/2.2.3 OpenSSL/0.9.8c mod_perl/2.0.2 Perl/v5.8.8 configured -- resuming normal operations This is a really silly question. I have a configuration where at the global server level, I set PerlSetVar myvar "

Re: sethandlers question

2008-10-14 Thread Torsten Foertsch
On Tue 14 Oct 2008, André Warnier wrote: > reminder of my config : > >> > >>     SetHandler jakarta-servlet ... > >> > > And, in summary, what I was trying to do is : > if the PerlAuthenHandler finds that the request is not authenticated, > then it tries to change the response handler for this re

Re: Apache2::Request in PerlInitHandler and PerlAuthenHandler

2008-10-14 Thread André Warnier
Torsten Foertsch wrote: On Tue 14 Oct 2008, Shibi NS wrote: And the ARULink::MetalinkAuth::handler is sub handler { my ($req) = @_; my $status; my $username; my $userid; my $email; # # Create a Session object. # my $req_params = $req->args; my $cgi

Re: sethandlers question

2008-10-14 Thread André Warnier
Hi. I have read and pondered your earlier responses, and I am sure that the correct solution is somewhere around the ErrorDocument or the $r->internal_redirect. But I wanted to exhaust the other possibilities first, for the sake of completeness and also to learn more about this all. So one l

Re: Apache2::Request in PerlInitHandler and PerlAuthenHandler

2008-10-14 Thread Torsten Foertsch
On Tue 14 Oct 2008, Shibi NS wrote: > And the ARULink::MetalinkAuth::handler is > > sub handler > { > my ($req) = @_; > > my $status; > my $username; > my $userid; > my $email; > > # > # Create a Session object. > # > my $req_params = $req->args; > my $cgi

Re: Apache2::Request in PerlInitHandler and PerlAuthenHandler

2008-10-14 Thread André Warnier
Hi. It usually helps for any kind of support issue, if you provide some information about where this is happening : what platform, which Apache version, which perl version, which mod_perl version, etc.. Now, below : > SetHandler perl-script is used when your purpose is to run a "

Apache2::Request in PerlInitHandler and PerlAuthenHandler

2008-10-14 Thread Shibi NS
I have following Location directive in my applications conf file PerlInitHandler ARULink::setup_request SetHandler perl-script PerlResponseHandler ARULink::handler PerlOptions +ParseHeaders +GlobalRequest Options ExecCGI AuthName