I removed the mp1 codes,
Also used Apache2 cookie, but still the post data is not there but still I
am using CGI session.
Should I use some other session handling...
How can I make sure that my $r is a Apache2 request.
Do I have to do as follows and use $req for all the references e.g setting
nt handlers in order to access it multiple
> times.
>
> Here is a good explanation of the process, they use a different method
> than the one I describe but it also works:
>
> http://modperlbook.org/html/A-2-Reusing-Data-from-POST-Requests.html
>
> Rgrds,
> Rob
>
much rework can't get the Apache2::Request to work. At this stage I
prefer less code change as every other fuctionality is working.
Would just a initialization of following work,
my $req = Apache2::Request->new($r);
Thanks
Joe Schaefer-6 wrote:
>
> --- Tracy12 <[EMAIL PROTECTED
Hi,
Thanks for the reply,
Can you pls clariy what is meant by the following,
>>
>>The original poster should be using apreq
>>(APR::Request::Apache2 or Apache2::Request)
>>for this, not some other perl module that doesn't
>>exploit the filter api.
Does this mean the final target application wh
Hi,
we have mod_perl auth handler
if the form(html) sumission is GET the sumitted data is avaible insid the
mod_perl auth handler and also after that.
But strange this is if the form submission is Post the data is available
with the mod_perl handler but not after that, After the
execution of t
Is there any apache level directive to allow custom http headers pass through
to the destination
Tracy12 wrote:
>
> Hi,
>
> We developed a mod_perl auth handler, everything seem to be working fine,
>
> But when the request reaches the final destination, the header inf
Hi,
What is the easist way to retrieve and print the html headers within
mod_perl.
Can we do it using CGI.pm
Thanks
--
View this message in context:
http://www.nabble.com/print-headers-tp17181544p17181544.html
Sent from the mod_perl - General mailing list archive at Nabble.com.
ing willl be handled
implicitly
THanks
Tracy12 wrote:
>
> Hi,
>
> We developed a mod_perl auth handler, everything seem to be working fine,
>
> But when the request reaches the final destination, the header information
> is lost,
>
> We have mod_perl 2.0.2 on Apache
Hi,
We developed a mod_perl auth handler, everything seem to be working fine,
But when the request reaches the final destination, the header information
is lost,
We have mod_perl 2.0.2 on Apache 2.x
Can some one give us a hint which configuration setting would do this
culprit or what is the s
I do not flush, but I can see the cookies generated in the session folder
This happens in only one navigation path only
Malcolm J Harwood-3 wrote:
>
> On Thursday 17 April 2008, Tracy12 wrote:
>
>> We do run a cron job to clean up the cache, Anyhow even it contains old
&g
user); return empty string before the
30m
Hope this information is enough for some one to make a comment
Malcolm J Harwood-3 wrote:
>
> On Thursday 17 April 2008 01:04:14 Tracy12 wrote:
>
>> for session handling we use CGI:Session cpan distribution,
>>
>> we do use local
Hi,
for session handling we use CGI:Session cpan distribution,
we do use local file for cookie storage, eventhough the session time out is
30, sometimes the set information in the
session get lost before that, has anybody experience this before.
We do have a cron job to clear the session data,
Hi,
We are using following in the middle of the mod_perl scripts, Can some one
state are there any
side effects or mis URL handling with use of these functions
parsed_uri;unparse() , we are on apache 2.2 with mod_perl
what are the alternatives or is it alright to keep the following
my $uri_par
Hi,
Hope you are refering to this.
http://search.cpan.org/dist/CGI.pm/CGI.pm#FETCHING_THE_NAMES_OF_ALL_THE_PARAMETERS_PASSED_TO_YOUR_SCRIPT:
Let me know if this is not the URL?
Sean Davis-3 wrote:
>
> Tracy12 wrote:
>> How can we install this seperately from where should we d
Can you let me know for mod_perl compatibility what is the minimum CGI.pm
version we should have?
Perrin Harkins wrote:
>
> On 8/16/07, Tracy12 <[EMAIL PROTECTED]> wrote:
>> When we ran the same script on other Linux machine, the param value is
>> not
>> sh
Hi,
Shouldn't mod_perl 2.0.X contain the CGI.pm, reason for this question is we
got
fedora core 5 running on our developement machines,
in our mod_perl handler, we got the following, and works fine, we did not
install CGI.pm seperately,
use CGI;
..
.
...
$myParam = $cgi->param('param')
Hi,
Within a perl Authentication hanlder what is the best way to preserve the
REMOTE_USER value and forward to the same but modified internal URL (without
some query parameters).
for eg.
htttp://localhost/private?MYTEMP=4
I want to remove MYTEMP=4 and forward to htttp://localhost/private with
Why does the Authentication handler been called many times unnecessarily for
a url pattern like (http://localhost/test), Is there any way to ignore
within the handler it self.
Is it advisable to use $r->is_initial_req; and return OK.
.
--
View this message in context:
http://w
to go
which is /test/index.pl without hardcoding, reason in when everything ok
(where no REDIRECT ) the same print statement in auth handler prints URI as
/test/index.pl, For some reason I want both to me similar (e.g CAS service
validate issue)
Thanks
Geoffrey Young wrote:
>
> Tracy12
In my mod_perl authentication module I have the following to get the url
without the ticket parameter
my $uri_parsed = $r->parsed_uri;
my $unparsed = $uri_parsed->unparse();
but if the user hits the url as follows
http://localhost/test it actually goes to
htt
Hi,
I successfully finished the mod_perl authentication hander (CAS). Everything
working fine, it got features like caching/session handling as well. My
httpd.conf looks as follows (See the bottom of the mail). As we have
simulated the final url by myTest.pl which will print REMOTE_USER env
varia
If have a Authentication handler written in perl,
How can count the no of times it has been accessed by clients, (Some think
like no of hits . Counter).
Is there a specific handler to do this ?
I tried to declare
use vars qw( $SESSION_CLEANUP_COUNTER); and increment within the code doent
seem
I introduced a
use vars qw( $SESSION_CLEANUP_COUNTER);
also having if not defined value =0,
and
$SESSION_CLEANUP_COUNTER
When it reaches the threshold do the cleanup, but it always go to the
undefined clause and return zero,
had use vars qw been deprecated?
Tracy12 wrote:
>
>
I have a general understanding about cleanup handler
But what is meant by the global timestamp and cleaning up in every 15
minutes,
Programatically How can we achieve it
Are u refereing to a global variable
Jonathan Vanasco-3 wrote:
>
>>> Which part of the perl auth handler should do this
Looks like cron job will do, but is there any docs to write such a script.
Meantime I found a sample as follows, as I am not having any DSN but only a
folder /tmp to store session data will this work or how this can be modified
#!/usr/bin/perl
use constant DSN=> 'driver:file';
use co
Hi,
I could get my Perl (mod_perl) Authentication handler with the CGI:Session
package, It is working fine.
We decided to keep the session data on LAN (file).
As there will be new file created for each Session, We just wanted to know
how to cleanup this folder, basically to clean all the expir
can I install the above module(CGI::Session) to my system.
Thanks
Perrin Harkins wrote:
>
> On Wed, 2007-01-17 at 16:11 -0800, Tracy12 wrote:
>> Well does this all mean there is limited features to do session handling
>> on
>> mod_perl.
>
> Concepts like sess
-01-17 at 14:50 -0800, Tracy12 wrote:
>> What about the security measures if we store authenticated user
>> information
>> in a cookie,
>>
>> Cant we handle in the server session and and store it as a session
>> variable.
>> This would be much secure?
>
oubt that we have is Because the user successful in his first
Authentication, Isnt there a way to retrieve the remote_user variable in the
subsequent requests (I may be wrong as well all new to this).
Thanks
Jonathan Vanasco-5 wrote:
>
>
> On Jan 17, 2007, at 5:50 PM, Tracy12 wrote:
>
What about the security measures if we store authenticated user information
in a cookie,
Cant we handle in the server session and and store it as a session variable.
This would be much secure?
Robert Landrum wrote:
>
> Tracy12 wrote:
>> My perl authentication handler works
Hi,
My perl authentication handler works fine BUT the biggest problem inside my
Auth handler I do some resource intenstive tasks and if everything
successful set the REMOTE_USER env variable.
But for the subsequent requests from the same user (after the initial
Authentication is successful) how c
Hi,
Java/Servlet/jsp world there are two types of http forwards/redirect
redirect -> This is make a complete new request, loose all the request
parameters
forward-> Will preserve all the information (e.g parameters) and forward to
the other URL
in mod_perl when we make a redirect (using the co
Does this mean there is no direct way to retrieve the scheme from the $r
I have seen old code bases where they do the following
my $uri->Apache::URI->parse($r);
my $schme= $uri->scheme;
But this is not working in mod_perl2.x
Robert Landrum wrote:
>
> Tracy12 wrote
How can we retrieve the URL Scheme (http/https ?) from a perl module, Port
given that only input parameter is $r
should we use my $uri = Apache::URI->parse($r) and $uri->scheme;
--
View this message in context:
http://www.nabble.com/Port-Sheme-information-tf3018818.html#a8384090
Sent
7;: Bareword
"Apache2::Const::OK" not allowed while "strict subs" in use at
/usr/lib/perl5/site_perl/5.8.8/AuthCAS.pm line 530.\nCompilation failed in
require at (eval 2) line 3.\n
Perrin Harkins wrote:
>
> On Mon, 2007-01-15 at 15:07 -0800, Tracy12 wrote:
>> I am mod
n I find the corresponing mappings for old vs new perl
versions.
Even though the functionality works in my case make test fails because of
the above line Apache2::compat;
Thanks
Perrin Harkins wrote:
>
> On Mon, 2007-01-15 at 00:51 -0800, Tracy12 wrote:
>> I found out that the re
Hi,
I am in the process of changing a perl module written to a Perl
Authentication handler.
Well when I try to deploy the module it failed in the ' make test' stage
all the other steps went ok.
But the functionality works as expected.
When we execute make test it gives the following error
Fa
Hi,
I am in the process of changing a perl module written to a Perl
Authentication handler.
Well when I try to deploy the module it failed in the ' make test' stage
all the other steps went ok.
But the functionality works as expected.
When we execute make test it gives the following error
Fa
Hi,
I am in the process of changing a perl module written to a Perl
Authentication handler.
Well when I try to deploy the module it failed in the ' make test' stage
all the other steps went ok.
But the functionality works as expected.
When we execute make test it gives the following error
Fa
errorDocument
Thanks
Michael Peters wrote:
>
> Tracy12 wrote:
>
>> 1) As we dont use the apache basic authentication but our CAS
>> authentication. If the authentication is not successful how can we
>> redirect
>> to the CAS login page.
>>
>>
[EMAIL PROTECTED]> wrote:
>>
>> Tracy12 wrote:
>>
>> > 1) As we dont use the apache basic authentication but our CAS
>> > authentication. If the authentication is not successful how can we
>> redirect
>> > to the CAS login page.
>> >
>
Hi,
Is there a easy way to extract the ticket(may be using a Regular Expression)
parameter from a URL as follows
http://localhost/myTest.pl?ticket=ST-2-zbwAtOlYlfzoC6knUXP9&name=test
I need to extract this from the perl_module where I have a handler for the
$r as follows, which is called from t
odule for CAS authentication I used mod_cas. This might be an easier way
> of
> doing what you are trying to do.
>
> On 12/01/07, Michael Peters <[EMAIL PROTECTED]> wrote:
>>
>> Tracy12 wrote:
>>
>> > 1) As we dont use the apache basic authentication but
I could overcome the problem by having PerlOptions +GlobalRequest
in the httpd.conf
Also I could get the REMOTE_USER as well.
Let me know if need further information on this.
Thanks
Tracy12 wrote:
>
> Yes CAS CAS authentication is done via a webform, it is working fine.
>
&g
e the handler as PerlHandler $r is available
my httpd.conf looks as follows
AuthType CAS
AuthName "AuthCAS"
PerlAuthenHandler AuthCAS->authen_handler
Require valid-user
Robert Landrum wrote:
>
> Tracy12 wrote:
>> 1) As we dont use the apache basic aut
Thanks Perrin and Rob,
Let me summarise what I have gathered from the responses that you all have
provided also with my little knowledge about mod_perl/apache2
Instead of writing a PerlHandler and redirecting to a particular URL, we
should write a PerlAuthenHandler
e.g httpd.conf should be
is a handy mechanism to pass the value?
Am I doing something fundamentally wrong?
Perrin Harkins wrote:
>
> On Thu, 2007-01-11 at 14:06 -0800, Tracy12 wrote:
>> If this is the case, How can we preserve the REMOTE_USER value and
>> forward/redirect to the other application
>&g
$ENV{'REMOTE_USER') variable can be used for such
purposes.
Phil Whelan wrote:
>
> Hi Tracy12,
>
>> $r->content_type('text/html');
>> $r->header_out->set(Location => $urlNew);
>> return Apache2::Const::REDIRECT;
>
>
Hi,
My objective is to update the REMOTE_USER variable within the perl module
and check whether
it is set in side CGI script by refering to the variable
$ENV{'REMOTE_USER'}.
I was successful setting value withing the module but $ENV{'REMOTE_USER'}
inside the CGI prints nothing (empty). Why does
Hi,
I have the following piece of code within my perl module, intention is to
update the REMOTE_USER variable.
I am using apache 2.2 with mod_perl 2.0 on Fedora core 5.
$r->connection->user($user2);
but at run time it gives the following error.
Can't locate object method "connection" via p
Is it always necessary to declare the perl module as PerlAuthenHandler in
order to update the REMOTE_USER variable. Cant we just define as
PerlHandler and inside the module update the REMOTE_USER.
Currently I am using the following to update the remote user
$r->connection->user($user);
e.g
Hi,
I have sampleClient.pl(CGI script) script which calls a perl module and does
some validations.
The question is How can I update the $ENV{REMOTE_USER} variable withing the
sampleClient.pl.
My install perl module is a generic perl module,
Is this something possible
Thanks
--
View this mess
Hi,
I have a simple httpd.conf block as follows
SetHandler perl-script
PerlHandler AuthCAS->test_Method2
within my perl module (inside test_Method2) I have simple re direct as
follows
sub test_Method2 {
my $urlNew = "www.mail.yahoo.com";
printf "Location: $urlNew\n\n";
}
When I hit a URL
53 matches
Mail list logo