modperl env with docker

2019-01-14 Thread jeffwpeng
Hello, do you know if there is a docker image for modperl integrated development/running environment? thank you.

[mp2] local %ENV causes $ENV{MOD_PERL} etc. to disappear on later requests

2014-06-05 Thread Tim Retout
Hello! At work I have been having some trouble with localizing %ENV. (This happens in CPAN modules such as Plack::Handler::Apache2 amongst others.) All seems well during the request itself - i.e. after the "local" goes out of scope, %ENV is reset correctly. However, on subsequent r

Re: difference between PerlSetEnv and $ENV{}= ?

2012-03-28 Thread Charlie Katz
Thanks for the detailed explanation. I guess the explanation for the behavior I see is that the C library called through Perl only has access to the process global %ENV, and not to the particular $r->subprocess_env data for the request through which it was called. On Tue, Mar 27, 2012 at 1:53

Re: difference between PerlSetEnv and $ENV{}= ?

2012-03-27 Thread Torsten Förtsch
On Tuesday, 27 March 2012 12:48:01 Charlie Katz wrote: > Still, can someone explain why > >PerlSetEnv ENV_VAR /my/value > > has different effects than > > >$ENV{ENV_VAR} = '/my/value'; > > > ? The source of the problem is that apach

Re: difference between PerlSetEnv and $ENV{}= ?

2012-03-27 Thread Charlie Katz
Okay, I figured it was something about the library being in a different language. Still, can someone explain why PerlSetEnv ENV_VAR /my/value has different effects than $ENV{ENV_VAR} = '/my/value'; ? On Mon, Mar 26, 2012 at 3:30 PM, Lloyd Richardson wrote:

RE: difference between PerlSetEnv and $ENV{}= ?

2012-03-26 Thread Lloyd Richardson
Do the PerlSetEnv as you are, and use this module to ensure it is visible from your pgplot lib env. http://search.cpan.org/dist/Env-C/C.pm From: ckatz...@gmail.com [mailto:ckatz...@gmail.com] On Behalf Of Charlie Katz Sent: March-26-12 2:26 PM To: rand...@modperl.pl Cc: modperl@perl.apache.org

Re: difference between PerlSetEnv and $ENV{}= ?

2012-03-26 Thread Charlie Katz
ent variable PGPLOT_DIR be set so > it > > can find some required files. Running from the command line, I just set > > this in the shell, and PGPLOT works fine. Running in Apache, I see > > different behavior: > > > > When I set this in httpd.conf: > >

RE: difference between PerlSetEnv and $ENV{}= ?

2012-03-26 Thread Szekeres, Edward
asier, use symlinks to map out of the htdocs folder to locations elsewhere. From: ckatz...@gmail.com [mailto:ckatz...@gmail.com] On Behalf Of Charlie Katz Sent: Monday, March 26, 2012 2:44 PM To: modperl@perl.apache.org Subject: difference between PerlSetEnv and $ENV{}= ? Hi, My web app uses the PGP

Re: difference between PerlSetEnv and $ENV{}= ?

2012-03-26 Thread Randolf Richardson
n httpd.conf: > PerlSetEnv PGPLOT_DIR /my/pgplot/directory > my Perl programs can see the value in $ENV{PGPLOT_DIR}, but the PGPLOT > library can't, and my code fails. > > When I set this in httpd.conf: > > $ENV{PGPLOT_DIR} = q[/my/pgplot/directory]; > > m

difference between PerlSetEnv and $ENV{}= ?

2012-03-26 Thread Charlie Katz
programs can see the value in $ENV{PGPLOT_DIR}, but the PGPLOT library can't, and my code fails. When I set this in httpd.conf: $ENV{PGPLOT_DIR} = q[/my/pgplot/directory]; my Perl programs can't see the value in $ENV, but the PGPLOT library can, and my code works. Can someo

RE: mod_perl 2 - %ENV variable

2010-12-12 Thread Peram, Sudhakara
Thank you Torsten Förtsch. I am not sure what options required for Env::C module, can you please let me know if you know any specific options. Yes, I have multiple perl installations. But I am using correct installation only. Thank you in advance. --Sudhakar -Original Message- From

Re: mod_perl 2 - %ENV variable

2010-12-12 Thread Torsten Förtsch
On Saturday, December 11, 2010 23:35:44 Peram, Sudhakara wrote: > I tried to use Env::C module, but while installing make test is failed. > Below is the make test output. > > > > Can't load 'blib/arch/auto/Env/C/C.so' for module Env::C: ld.so.1: perl: > fat

mod_perl 2 - %ENV variable

2010-12-11 Thread Peram, Sudhakara
Hi I am migrating a web application from mod_perl 1.21 to mod_perl 2.0.4, Apache 1.3.9 to 2.2.17 and Perl5.005 to Perl5.12.2 . Operating system is Sun Solaris 9. The problem is that in most places the %ENV variable is used to pass parameters to programs called via "system".

Re: getting $r and env to reflect external ports

2009-08-15 Thread Torsten Foertsch
On Sat 15 Aug 2009, Jonathan Swartz wrote: > We've got a bunch of legacy code that uses $ENV{SCRIPT_URI},   > $ENV{SERVER_PORT}, $r->server->port and the like to generate external >   redirects. > > This has worked fine til now, but now we are moving to a system where &g

Re: getting $r and env to reflect external ports

2009-08-14 Thread Jonathan Swartz
> We've got a bunch of legacy code that uses $ENV{SCRIPT_URI}, > $ENV{SERVER_PORT}, $r->server->port and the like to generate external > redirects. > If these are really external redirects, they must happen through a "Location:" response header, no ? In that c

Re: getting $r and env to reflect external ports

2009-08-14 Thread André Warnier
Jonathan Swartz wrote: We've got a bunch of legacy code that uses $ENV{SCRIPT_URI}, $ENV{SERVER_PORT}, $r->server->port and the like to generate external redirects. If these are really external redirects, they must happen through a "Location:" response header, no ? In

getting $r and env to reflect external ports

2009-08-14 Thread Jonathan Swartz
We've got a bunch of legacy code that uses $ENV{SCRIPT_URI}, $ENV{SERVER_PORT}, $r->server->port and the like to generate external redirects. This has worked fine til now, but now we are moving to a system where our external port != our internal port - the load balancer

Re: Can a PerlAuthzHandler access ENV variables set by mod_auth_kerb?

2009-07-07 Thread William T
On Mon, Jul 6, 2009 at 10:14 AM, Mike Diehn wrote: > > > Hello, all. > > I'm authenticating users with mod_auth_krb and setting KrbSaveCredentials > to on.  I've found that the credentials are stored in a file in /tmp.  The > name of the file is passed to CGI program

Can a PerlAuthzHandler access ENV variables set by mod_auth _kerb?

2009-07-06 Thread Mike Diehn
Hello, all. I'm authenticating users with mod_auth_krb and setting KrbSaveCredentials to on. I've found that the credentials are stored in a file in /tmp. The name of the file is passed to CGI programs as the contents of an ENV var named KRB5CCNAME. I'm handling the authoriza

Re: $r->connection->remote_ip with proxy and non proxy env

2008-10-09 Thread Heiko Jansen
Am Mittwoch, den 08.10.2008, 10:06 -0700 schrieb Fred Moyer: > You could also do something like: > > if (my $ip = $r->headers_in->{'X-Forwarded-For'}) { > > $r->connection->remote_ip( $ip ); > } But (as I learned the hard way long ago) you should check the value of the X-Forwarded-For hea

Re: $r->connection->remote_ip with proxy and non proxy env

2008-10-08 Thread Fred Moyer
cfaust-dougot wrote: Folks, I'm guessing this has been answered but I couldn't find it. We need to do some IP checking and need to support it on both a load balanced environment and in a dedicated machine setup. In the load balanced situation $r->connection->remote_ip returns 1 - Is that

$r->connection->remote_ip with proxy and non proxy env

2008-10-06 Thread cfaust-dougot
Folks, I'm guessing this has been answered but I couldn't find it. We need to do some IP checking and need to support it on both a load balanced environment and in a dedicated machine setup. In the load balanced situation $r->connection->remote_ip returns 1 - Is that correct and consistent

Re: installed mod_perl, but no MOD_PERL in ENV

2008-08-07 Thread Jayson Hill
]" <[EMAIL PROTECTED]> To: modperl@perl.apache.org Sent: Wednesday, August 6, 2008 8:43:10 AM Subject: Re: installed mod_perl, but no MOD_PERL in ENV Quoting Jayson Hill <[EMAIL PROTECTED]>: > I just compiled and installed mod_perl 2.0.3 for apache Apache/2.2.8 > Did

Re: installed mod_perl, but no MOD_PERL in ENV

2008-08-06 Thread adam . prime
/2.2.8 (Unix) DAV/2 mod_perl/2.0.3 Perl/v5.8.8 configured -- resuming normal operations However, I don't see the MOD_PERL entry in ENV, and when I print $CGI::MOD_PERL value to browser, it is 0. Not sure why I don't see this as it *seems* that mod_perl is integrated. I'm

Re: installed mod_perl, but no MOD_PERL in ENV

2008-08-06 Thread Michael Peters
Jayson Hill wrote: However, I don't see the MOD_PERL entry in ENV, and when I print $CGI::MOD_PERL value to browser, it is 0. Not sure why I don't see this as it *seems* that mod_perl is integrated. Just because mod_perl is installed doesn't mean that whatever script you are

RE: installed mod_perl, but no MOD_PERL in ENV

2008-08-06 Thread Jo bu
Hi Jayson, I've used $ENV{MOD_PERL} to print the version of mod_perl installed. Also, you should be able to see it on your ServerSignature. Hope that helps. Dan > Date: Tue, 5 Aug 2008 21:07:58 -0700 > From: [EMAIL PROTECTED] > Subject: installed mod_perl, but no MOD_PE

installed mod_perl, but no MOD_PERL in ENV

2008-08-05 Thread Jayson Hill
-- resuming normal operations However, I don't see the MOD_PERL entry in ENV, and when I print $CGI::MOD_PERL value to browser, it is 0. Not sure why I don't see this as it *seems* that mod_perl is integrated. System info: Apache: 2.2.8 mod_perl: 2.0.3 CGI perl module: 3.28 perl:

Re: [mp2] [bug?] %ENV changes not propagated to qx() and to C-library calls.

2008-01-31 Thread Michael Schout
The docs seem to suggest that that changes to %ENV should work fine: http://perl.apache.org/docs/2.0/user/coding/coding.html mod_perl passes (exports) the following shell environment variables (if they are set) : * PATH - Executables search path. * TZ - Time Zone. Any of these

[mp2] [bug?] %ENV changes not propagated to qx() and to C-library calls.

2008-01-30 Thread B Wooster
Looks like mod_perl scripts execute the line that changes $ENV{PATH}, but when a qx() back-tick command is executed, that command is executed under the value of the original path. The docs seem to suggest that that changes to %ENV should work fine: http://perl.apache.org/docs/2.0/user/coding

Re: [mp2] [question] $ENV{PATH} changes not taking effect?

2008-01-21 Thread B Wooster
On Jan 17, 2008 4:14 PM, Bart Schaefer <[EMAIL PROTECTED]> wrote: > There's a thread from December that would seem to be related. From that > thread: > > -- Forwarded message -- > From: Michael Schout <[EMAIL PROTECTED]> > Date: Dec 28, 2007 9

Re: [mp2] [question] $ENV{PATH} changes not taking effect?

2008-01-17 Thread William A. Rowe, Jr.
e it is not thread safe. There really ought to be an option (IMO) where you can make the untie of %ENV under perl-script to be optional. Maybe something like PerlOptions +NoUntieEnv or something so that if you are running under a prefork MPM, you do not need to resort to tactics like the above. If

[mp2] [question] How to change $ENV{PATH} for a specific script?

2008-01-17 Thread B Wooster
I have searched through all the web docs and Usenet, but not found anything that suggests anything special has to be done in mod_perl scripts that need to set $ENV{PATH} My specific example is that I need to add /usr/local/bin to PATH, but I''ve been unable to find a way to do this,

Re: [mp2] [question] $ENV{PATH} changes not taking effect?

2008-01-17 Thread Bart Schaefer
There's a thread from December that would seem to be related. From that thread: -- Forwarded message -- From: Michael Schout <[EMAIL PROTECTED]> Date: Dec 28, 2007 9:12 PM Subject: Re: mod_perl, ENV{'TZ'}, and localtime To: Kirk Noda <[EMAIL

Re: [mp2] [question] $ENV{PATH} changes not taking effect?

2008-01-17 Thread B Wooster
Under modperl, get zero bytes output, HTTP response code is 200, though. Apache error_log shows: [Thu Jan 17 12:47:15 2008] -e: Can't exec "basename": No such file or directory at /var/www/perl/script.pl line 12. So, under modperl, changes to $ENV{PATH} are not accepted (like pe

Re: [mp2] [question] $ENV{PATH} changes not taking effect?

2008-01-17 Thread Jim Brandt
What happens if you try running it with the modperl handler instead of the perl-script handler? B Wooster wrote: I have searched through all the web docs and Usenet, but not found anything that suggests anything special has to be done in mod_perl scripts that need to set $ENV{PATH} My

[mp2] [question] $ENV{PATH} changes not taking effect?

2008-01-17 Thread B Wooster
I have searched through all the web docs and Usenet, but not found anything that suggests anything special has to be done in mod_perl scripts that need to set $ENV{PATH} My specific example is that I need to add /usr/local/bin to PATH, but I''ve been unable to find a way to do this,

Re: PerlFixupHandler - %ENV

2008-01-07 Thread Anthony Gardner
col. thx for that. I'll have a play. merci. Geoffrey Young <[EMAIL PROTECTED]> wrote: Anthony Gardner wrote: > I'm trying to write a FixupHandler to clean up the query_string > before it gets to the response phase. Problem is, I can't. After > clea

Re: PerlFixupHandler - %ENV

2008-01-07 Thread Geoffrey Young
Anthony Gardner wrote: I'm trying to write a FixupHandler to clean up the query_string before it gets to the response phase. Problem is, I can't. After cleaning it up, I reassign to $ENV{QUERY_STRING} but in the called response script, the original QUERY_STRING is present. I can ad

PerlFixupHandler - %ENV

2008-01-07 Thread Anthony Gardner
I'm trying to write a FixupHandler to clean up the query_string before it gets to the response phase. Problem is, I can't. After cleaning it up, I reassign to $ENV{QUERY_STRING} but in the called response script, the original QUERY_STRING is present. I can add new keys to %

Re: mod_perl, ENV{'TZ'}, and localtime

2007-12-30 Thread Kirk Noda
At 09:12 PM 12/28/2007, you wrote: [...] The reason this does not work under modperl version 2.0 is because under handler "perl-script", %ENV is untied from the C environment. The [...] Thanks very much, that works.

Re: mod_perl, ENV{'TZ'}, and localtime

2007-12-28 Thread Michael Schout
Kirk Noda wrote: > The thread seemed to die off. Still, is there a way to use $ENV{TZ} to > modify the behavior of localtime? The reason this does not work under modperl version 2.0 is because under handler "perl-script", %ENV is untied from the C environment. The localti

mod_perl, ENV{'TZ'}, and localtime

2007-12-28 Thread Kirk Noda
Hello, I'd like to reference the Tues 03 Oct '06 thread with subject: RE: Using ENV{'TZ'} in mod_perl http://mail-archives.apache.org/mod_mbox/perl-modperl/200610.mbox/browser The thread seemed to die off. Still, is there a way to use $ENV{TZ} to modify the behavior of l

Re: register_cleanup and %ENV

2007-12-20 Thread Michael Schout
Perrin Harkins wrote: > Have you considered using your own global instead? Or PerlSetVar in > httpd.conf? Yeah. Unfortunately that really doesn't work for me. I can get TEST_MODE that way, but there are other %ENV vars that I need also (such as HTML_TEMPLATE_ROOT for example). I

Re: register_cleanup and %ENV

2007-12-20 Thread Perrin Harkins
On Dec 20, 2007 2:09 PM, Michael Schout <[EMAIL PROTECTED]> wrote: > mod_perl 2 unfortunately scrubs %ENV before my cleanup handler > gets called, so $ENV{TEST_MODE} is never set when the cleanup handler > runs. Have you considered using your own global instead? Or PerlSetVa

register_cleanup and %ENV

2007-12-20 Thread Michael Schout
p handler saved in the db). Getting the cleanup registered and getting it to fire under mod_perl 2 was simply a matter of changing $r->post_connection(sub { ... }) to $r->pool->cleanup_register(sub { ... }). So far so good. The problem with this is I an %ENV variable called "TEST_M

Re: SCRIPT_NAME & PATH_INFO %ENV variables

2007-10-24 Thread Lev Lvovsky
On Oct 24, 2007, at 9:01 PM, Randy Kobes wrote: I misunderstood your question - I thought you were trying to do this just under mod_perl, without CGI.pm. The CGI::Apache2::Wrapper package and CGI.pm are intended to give the same results, assuming the tests pass: http://search.cpan.org/src/RKOBE

Re: SCRIPT_NAME & PATH_INFO %ENV variables

2007-10-24 Thread Randy Kobes
On Wed, 24 Oct 2007, Lev Lvovsky wrote: On Oct 24, 2007, at 4:31 PM, Randy Kobes wrote: The code in CGI::Apache2::Wrapper: http://cpan.uwinnipeg.ca/htdocs/CGI-Apache2-Wrapper/CGI/Apache2/Wrapper.pm.html#Apache2_URI provides a CGI-compatible url() method based on Apache2::URI: http://cpan.uwinn

Re: SCRIPT_NAME & PATH_INFO %ENV variables

2007-10-24 Thread Lev Lvovsky
On Oct 24, 2007, at 4:31 PM, Randy Kobes wrote: The code in CGI::Apache2::Wrapper: http://cpan.uwinnipeg.ca/htdocs/CGI-Apache2-Wrapper/CGI/Apache2/ Wrapper.pm.html#Apache2_URI provides a CGI-compatible url() method based on Apache2::URI: http://cpan.uwinnipeg.ca/htdocs/mod_perl/Apache2/URI.

Re: SCRIPT_NAME & PATH_INFO %ENV variables

2007-10-24 Thread Randy Kobes
On Wed, 24 Oct 2007, Lev Lvovsky wrote: judging by this thread: http://www.mail-archive.com/[EMAIL PROTECTED]/msg15609.html This might be an old question but I'm not entirely sure I understand the answer spelled out in the response. I have the following Location setting in my httpd.conf (vi

SCRIPT_NAME & PATH_INFO %ENV variables

2007-10-24 Thread Lev Lvovsky
judging by this thread: http://www.mail-archive.com/[EMAIL PROTECTED]/msg15609.html This might be an old question but I'm not entirely sure I understand the answer spelled out in the response. I have the following Location setting in my httpd.conf (via an include file): SetHandler perl-s

Re: Insecure directory in $ENV{PATH}

2007-06-19 Thread jean jayet
this is due to perl security (perlsec) For "Insecure PATH" messages, it is required to set $ENV{'PATH}' to a known value, and each directory in the path must be non-writable by the world rgds, Jean jean jayet wrote On 06/19/07 04:29 PM,: > Hello all, > > >

Insecure directory in $ENV{PATH}

2007-06-19 Thread jean jayet
Hello all, during setup of mod_perl 2 with Apache 2 and perl 5.8.4 on a solaris 10 make test : "Insecure directory in $ENV{PATH} while running with -T switch at /tmp/mod_perl-2.0.3/Apache-Test/lib/Apache/TestConfig.pm" does anybody have an idea what is the pb ? rgds, Jean for

ENV stuff

2007-06-13 Thread Anthony Gardner
Okay, to answer my own post from a few days ago (I haven;t been working on it since the post, just the last 30 mins ;) ) Anyway, the answer to me not seeing PerlPassEnv vars at server startup was because they were in files that were Include(d) into httpd.conf. They are now in httpd.conf and eve

Re: Apache2 ENV

2007-06-04 Thread Anthony Gardner
speak up :) - Original Message - From: Anthony Gardner To: modperl@perl.apache.org Sent: Friday, June 01, 2007 9:07 AM Subject: Apache2 ENV Okay, am being a bit lazy but I though I'd ask here and continue reading the docs while waiting for replies. We've finally ported mod_per

Re: Apache2 ENV

2007-06-01 Thread Dondi M. Stroma
t will speak up :) - Original Message - From: Anthony Gardner To: modperl@perl.apache.org Sent: Friday, June 01, 2007 9:07 AM Subject: Apache2 ENV Okay, am being a bit lazy but I though I'd ask here and continue reading the docs while waiting for replies. We've finally ported mod_

Apache2 ENV

2007-06-01 Thread Anthony Gardner
g else I should be doing to get ENV populated under CGI? Also, just had a quick look through the docs and I saw PerlPostConfigRequire - the docs say it's run as late as poss during server startup. So, I'm assuming vars declared in startup.pl will still be shared between processes and

Re: ENV

2007-05-04 Thread Dodger
Jonathan Vanasco wrote: Is there a way to get additional shell variables exported into ENV on startup ? // Jonathan Vanasco Yup. I do this: package Local::PrepSession; use DBI; my $sql = DBI->connect('DBI:mysql:apache','**','**'); use A

Re: ENV

2007-04-30 Thread Randal L. Schwartz
>>>>> "Jonathan" == Jonathan Vanasco <[EMAIL PROTECTED]> writes: Jonathan> $ENV in mod_perl isn't $ENV like a regular perl script. Jonathan> in a regular perl script, $ENV will have all the shell vars Please don't use $ENV when you really mean

Re: ENV

2007-04-30 Thread Jonathan Vanasco
On Apr 30, 2007, at 2:22 PM, Frank Wiles wrote: I haven't tired this, but don't see why it wouldn't work. Can't you just do: $ENV{'foo'} = 'bar'; in your startup.pl? That works, but thats not what i want. I want to stuff shell env var

Re: ENV

2007-04-30 Thread Clinton Gormley
>I haven't tired this, but don't see why it wouldn't work. Can't > you just do: > >$ENV{'foo'} = 'bar'; > >in your startup.pl? Works for me

Re: ENV

2007-04-30 Thread Frank Wiles
On Mon, 30 Apr 2007 14:10:57 -0400 Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > > On Apr 30, 2007, at 1:39 PM, Frank Wiles wrote: > > >> Is there a way to get additional shell variables exported into ENV > >> on startup ? > > > >Do you m

Re: ENV

2007-04-30 Thread Jonathan Vanasco
On Apr 30, 2007, at 1:39 PM, Frank Wiles wrote: Is there a way to get additional shell variables exported into ENV on startup ? Do you mean the PerlSetEnv and PerlPassEnv directives? I guess PerlPassEnv will do... I only knew about PerlSetEnv . But I really want to keep this out of

Re: ENV

2007-04-30 Thread Frank Wiles
On Sat, 28 Apr 2007 01:18:15 -0400 Jonathan Vanasco <[EMAIL PROTECTED]> wrote: > Is there a way to get additional shell variables exported into ENV > on startup ? Do you mean the PerlSetEnv and PerlPassEnv directives? - Frank Wiles <[

ENV

2007-04-27 Thread Jonathan Vanasco
Is there a way to get additional shell variables exported into ENV on startup ? // Jonathan Vanasco | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | FindMeOn.com - The cure for Multiple Web Personality Disorder | Web Identity

Re: Lost ENV variable value .........

2007-01-14 Thread Tracy12
use > the same Auth together (called a "realm"). > >> 3) Pass addtional parameters to the handler >> solution -> in the httpd.conf block pass it as >> >> PerlSetVar CASHost "testCasServer" >> PerlSetVar CASPort "8443"

Re: Lost ENV variable value .........

2007-01-14 Thread Tracy12
Name can be >> whatever you want it to be. It's basically a way to group the locations >> that use >> the same Auth together (called a "realm"). >> >> > 3) Pass addtional parameters to the handler >> > solution -> in the httpd.conf block pass it as >&

Re: Lost ENV variable value .........

2007-01-14 Thread Tracy12
"realm"). >> >> > 3) Pass addtional parameters to the handler >> > solution -> in the httpd.conf block pass it as >> > >> > PerlSetVar CASHost "testCasServer" >> > PerlSetVar CASPort "8443" >> >> Yep. If possible keep the configuration data inside the configuration >> s. >> >> -- >> Michael Peters >> Developer >> Plus Three, LP >> >> > > -- View this message in context: http://www.nabble.com/Lost-ENV-variable-value-.-tf2956856.html#a8364005 Sent from the mod_perl - General mailing list archive at Nabble.com.

Re: Lost ENV variable value .........

2007-01-12 Thread Peter Rosenthal
I have used CAS myself, but instead of attempting to implement the server module 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 aut

Re: Lost ENV variable value .........

2007-01-12 Thread Michael Peters
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. > > My suggestion -> instead of returning the AUTH_REQUIRED redirect to > CAS URL with the service. > i

Re: Lost ENV variable value .........

2007-01-11 Thread Tracy12
ove >>> httpd.conf >>> entry what the values should we give for AuthType , AuthName in the >>> above >>> Location declaration. >>> >> >> I think, with PerlAuthzHandler you only need to specify a "Requires >> valid-user" to make it work. >> >> Rob >> >> > > -- View this message in context: http://www.nabble.com/Lost-ENV-variable-value-.-tf2956856.html#a8292743 Sent from the mod_perl - General mailing list archive at Nabble.com.

Re: Lost ENV variable value .........

2007-01-11 Thread Tracy12
k, with PerlAuthzHandler you only need to specify a "Requires > valid-user" to make it work. > > Rob > > -- View this message in context: http://www.nabble.com/Lost-ENV-variable-value-.-tf2956856.html#a8290672 Sent from the mod_perl - General mailing list archive at Nabble.com.

Re: Lost ENV variable value .........

2007-01-11 Thread Robert Landrum
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. Ah-ha... So CAS authentication is done via a webform of some type, which means that it uses cookies. Am I correct i

Re: Lost ENV variable value .........

2007-01-11 Thread Tracy12
f success return the OK or else return AUTH_REQUIRED. The application in /privateUrl is a Vendor application, is a complete black box for us. As part of this integration(Casification) Vendor asked us to do the authentication (CAS) and if success update the remote user env variable. Apart from C

Re: Lost ENV variable value .........

2007-01-11 Thread Robert Landrum
Perrin Harkins wrote: After successful authentication we need to pass the control to another application(which is running on the same apache server) which depend on the REMOTE_USER value which we set. That will work fine, as long as your auth handler runs in the same request as the thing that w

Re: Lost ENV variable value .........

2007-01-11 Thread Perrin Harkins
On Thu, 2007-01-11 at 15:01 -0800, Tracy12 wrote: > My intention is not to use the authentication provided by the apache, but > uses a authentication mechanism by CAS (Central Autthentication Service) > running else where If you intend to use HTTP basic auth (with the popup window that asks for y

Re: Lost ENV variable value .........

2007-01-11 Thread Tracy12
) authentication and if success set the REMOTE_USER value and there after pass the control to (http://library/service_2), This library serive will retrieve the $ENV{'REMOTE_USER') value and perform further processing. I have the perl script do the CAS valiation working fine but still work

Re: Lost ENV variable value .........

2007-01-11 Thread Robert Landrum
the impression $ENV{'REMOTE_USER') variable can be used for such purposes. I think you've got this idea or notion that this is the right way to do whatever it is you're trying to do and are asking questions that don't really make sense to us. Maybe we could help more i

Re: Lost ENV variable value .........

2007-01-11 Thread Perrin Harkins
odule in the first > application. > > > I was under the impression $ENV{'REMOTE_USER') variable can be used for such > purposes. It sounds like you're not clear on what HTTP basic authentication does. A good starting point is the authentication docs on the apache websi

Re: Lost ENV variable value .........

2007-01-11 Thread Tracy12
$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; > >

Re: Lost ENV variable value .........

2007-01-11 Thread Phil Whelan
d 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 it got removed after the function and redirection. My perl module

Lost ENV variable value .........

2007-01-10 Thread Tracy12
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

update $ENV{REMOTE_USER}

2007-01-08 Thread Tracy12
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

Re: Apache::Reload == Lost ENV

2006-12-02 Thread Anthony Gardner
tell me about it but my hands are well and truly tied. Will ask them to install Apache::StatINC and give that a try. It's a tad annoying as if this was a Java project, they'd have the latest and greatest installed on a gold tray. Frank Wiles <[EMAIL PROTECTED]> wrote: On Fri, 1 Dec 2006 15:15:3

Re: Apache::Reload == Lost ENV

2006-12-01 Thread Frank Wiles
On Fri, 1 Dec 2006 15:15:32 + (GMT) Anthony Gardner <[EMAIL PROTECTED]> wrote: > it's actually MP .. not too sure, to be honest. I work for a > largce co. that are using RedHat pkgs and although it claims tp be > MP2, its version number gives 1.99(sth) and the Apache namespaces are > A

Re: Apache::Reload == Lost ENV

2006-12-01 Thread Anthony Gardner
o the functions are v, v simple package WWW::Utils; use strict; use diagnostics; use Apache::ServerUtil; use Apache::RequestUtil(); use ModPerl::Util; sub printenv() { my $self = shift; print STDERR map{ "\t$_ => $ENV{$_}\n" } sort keys %ENV; } sub document_root() {

Re: Apache::Reload == Lost ENV

2006-12-01 Thread Philip M. Gollucci
Anthony Gardner wrote: I'm def not the first to have noticed this, I googled but nothing sprang out at me. I have a pkg var our $DOCUMENT_ROOT = WWW::Utils->document_root(); and I print %ENV at package level WWW::Utils->printenv(); I'm assuming mp1. I think you might

Apache::Reload == Lost ENV

2006-12-01 Thread Anthony Gardner
I'm def not the first to have noticed this, I googled but nothing sprang out at me. I have a pkg var our $DOCUMENT_ROOT = WWW::Utils->document_root(); and I print %ENV at package level WWW::Utils->printenv(); If, after changing this pkg's code, I issue a new request, the DOCUM

RE: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Garrett, Philip \(MAN-Corporate\)
Tyler wrote: > Another thing I just noticed is that you ran your tests under > Apache::PerlRun, my mod_perl installation is using as its > PerlResponseHandler ModPerl::PerlRun. What's the difference between > the two? Apache::PerlRun is the mod_perl 1 module, ModPerl::PerlRun is for mod_perl 2.

RE: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Tyler
EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 12:30 PM To: Tyler; modperl@perl.apache.org Subject: RE: Using ENV{'TZ'} in mod_perl Tyler Fullerton wrote: > > If I have the following script: www.somewhere.com/e3/datetz.cgi (where > e3 is using PerlRun) that does the followin

RE: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Garrett, Philip \(MAN-Corporate\)
Tyler Fullerton wrote: > > If I have the following script: www.somewhere.com/e3/datetz.cgi (where > e3 is using PerlRun) that does the following: > > $ENV{'TZ'} = 'US/Eastern'; > POSIX::tzset(); > my @time = localtime(); > my $time = time();

RE: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Tyler
Sure thing, If I have the following script: www.somewhere.com/e3/datetz.cgi (where e3 is using PerlRun) that does the following:   $ENV{‘TZ’} = ‘US/Eastern’; POSIX::tzset(); my @time = localtime(); my $time = time(); $ENV{‘TZ’} = ‘US/Pacific’; POSIX::tzset();   # I would expect

Re: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Jonathan Vanasco
From: Tyler [mailto:[EMAIL PROTECTED] Hello, I previously requested some help with setting $ENV{TZ} and using it’s value to modify the output of localtime (i.e. Make it time zone specific). The suggested solution was to use POSIX::tzset() because my perl installation was compiled with

RE: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Garrett, Philip \(MAN-Corporate\)
Can you post a tiny test script that reproduces your problem? From: Tyler [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 03, 2006 2:06 PMTo: modperl@perl.apache.org; Garrett, Philip (MAN-Corporate)Subject: RE: Using ENV{'TZ'} in mod_perl Hello, I

RE: Using ENV{'TZ'} in mod_perl

2006-10-03 Thread Tyler
Hello, I previously requested some help with setting $ENV{TZ} and using it’s value to modify the output of localtime (i.e. Make it time zone specific).  The suggested solution was to use POSIX::tzset() because my perl installation was compiled with thread support.  So this helped, however

RE: Using ENV{'TZ'} in mod_perl

2006-09-20 Thread Garrett, Philip \(MAN-Corporate\)
If you're using a perl compiled with thread support, you'll need to call POSIX::tzset() after setting $ENV{TZ}.   From: Tyler [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 20, 2006 2:09 PMTo: modperl@perl.apache.orgSubject: Using ENV{'TZ'} in mo

Using ENV{'TZ'} in mod_perl

2006-09-20 Thread Tyler
Hello, I have a script that use to use the value in the environment variable ENV{‘TZ’} to modify the output of the perl builtin localtime.  In other words, I’d do something like this:   $ENV{‘TZ’} = ‘US/Eastern’; @time = localtime();   This use to give me the localtime in whatever

Re: Help: ENV shared between requests???

2006-07-30 Thread Jonathan Vanasco
that case-sensitive? I'd like to stop using %ENV altogether, but the stuff in %ENV is scattered in several different places and I don't always know where to find it ($r->header_in('something'), $r->document_root, $s->port, etc.) Is there some kind of mapping somewhere that

Re: Help: ENV shared between requests???

2006-07-30 Thread Hendrik Van Belleghem
case-sensitive? I'd like to stop using %ENV altogether, but the stuff in %ENV is scattered in several different places and I don't always know where to find it ($r->header_in('something'), $r->document_root, $s->port, etc.) Is there some kind of mapping somewhere that

Re: Help: ENV shared between requests???

2006-07-30 Thread Fred Tyler
On 7/30/06, Hendrik Van Belleghem <[EMAIL PROTECTED]> wrote: Using the pure mod_perl approach has always worked for me: my $ref = $req->header_in("Referer"); Oh, wow, that's actually just what I was looking for. Is that case-sensitive? I'd like to stop using %ENV

Re: Help: ENV shared between requests???

2006-07-30 Thread Fred Tyler
> I was trying to use $ENV{'HTTP_REFERER'} in a certain script, and as I > reloaded the script over and over I noticed that it would constantly > be changing when the page was loaded directly (and therefore there > should not have been any HTTP_REFERER at all). In my setup

  1   2   3   >