Re: Apache::DBI

2002-02-12 Thread Martin Haase-Thomas
(doesApache::DBI overload the DBI methods?) No, it doesn't. It uses Apache and DBI. Did you install the package via the "Makefile.PL" stanza? Maybe you should just install it another time. On the other hand, Apache::DBI doesn't export anything. Try calling it with the package name explicitly.

Re: [Fwd: Samba authorization]

2002-02-12 Thread Andrew Afliatunov
"Stathy G. Touloumis" wrote: > It seems that the problem does not reside with Smb.pm but with the shared > object file Smb.so I reinstalled Authen-Smb, - Smb.so looks good :) and is there where it must be. What may be wrong with this file? -- Andrew

Re: Apache::DBI

2002-02-12 Thread Marty J. Rogers
I had tried that, with the same result. (does Apache::DBI overload the DBI methods?) Full error is as follows. Again, any help is _highly_ appreciated. Marty [error] Can't locate object method "connect_on_init" via package "Apache::DBI" at /etc/httpd/conf/startup.pl line 28. Compilation failed

RE: mod_perl + UNIVERSAL

2002-02-12 Thread Stathy G. Touloumis
: ) As with any application that depends on the requirements. > > There really is no reason to cleanup the globals since they are still > > referenced and in memory. Perhaps you can consider an > interface around your > > code which can handle the cleanup and such of any variables. > > > > You

Re: mod_perl + UNIVERSAL

2002-02-12 Thread Perrin Harkins
> If the UNIVERSAL namespace is shared I > would have thought one or the other (the last one?) would "get" the > print_error sub and the other loses out but at some point they seem to > coexist just fine. Whilst at some other point they as expected and one gets > the others. Any theories? You hav

RE: mod_perl + UNIVERSAL

2002-02-12 Thread Ged Haywood
Hi all, On Tue, 12 Feb 2002, Stathy G. Touloumis wrote: > There really is no reason to cleanup the globals since they are still > referenced and in memory. Perhaps you can consider an interface around your > code which can handle the cleanup and such of any variables. > > You could also set a

Re: Authentication???

2002-02-12 Thread Dzuy Nguyen
Have you looked at Apache::AuthCookie? Ray Recendez wrote: 002101c1b40c$fa6ab930$d4fe97c6@RAYWIN"> I am trying decide which authentication scheme to use with Apache on Solaris. I want to be able to issue cookies and expire them after a set duration. What is the best method

RE: mod_perl + UNIVERSAL

2002-02-12 Thread Morton-Allen, Matthew
This is what I thought but I am not getting behaviour that indicates this. To explain. I have two applications, a forums program and a basic portal. Both of these run on the same server under virtual servers. Both .pl's have a section where they switch into the UNIVERSAL package and setup some gl

Authentication???

2002-02-12 Thread Ray Recendez
I am trying decide which authentication scheme to use with Apache on Solaris. I want to be able to issue cookies and expire them after a set duration. What is the best method/module(s)? And which provides the most documentation on setup and configuration?   Thanks, --Ray  

RE: mod_perl + UNIVERSAL

2002-02-12 Thread Stathy G. Touloumis
> > * Global variables should be reinitialized on each request. Or at least > > if we want them to be persistent we do not want them to be shared with > > different scripts on different virtual hosts! Try looking into the way mod_perl hooks into the apache configuration. This may work for settin

AW: Multiple authentication methods

2002-02-12 Thread Marcel Weber
It works I don't get the point why it did not work the other way round, but now everything is just fine now : package Apache::AuthenIntra; #use strict; use Apache::AuthenSmb; use Apache::AuthSybase; use Apache::Constants; sub handler { my $r = shift; my($res, $s

Re: mod_perl + UNIVERSAL

2002-02-12 Thread Perrin Harkins
> A list of things I've noticed: > > * If you have two *different* modules which have the same name, then > either one, or the other is loaded in memory, never both. This is > dead annoying. I think Perl standard modules + CPAN modules should be > shared, other modules which are specific to a give

Re: mod_perl + UNIVERSAL

2002-02-12 Thread Perrin Harkins
> However both applications make use of the UNIERVSAL package to create > universally accessible methods (to return the current database handle for > example) within the application. Better to put those into a package of your own and call them with fully-qualified names, or import them as Tatsuhi

Re: mod_perl + UNIVERSAL

2002-02-12 Thread Geoffrey Young
Perrin Harkins wrote: > > > I think the problem here is that mod_perl sets the assbackward flag > > when setting headers via send_cgi_header() (which CGI.pm does). > > Is this only an issue when using CGI.pm or PerlSendHeader then? I seem to > recall having no trouble doing this from a normal h

Re: Question...

2002-02-12 Thread Jon Robison
Cookies! /me is in smartass mode today. --Jon Ron Beck wrote: > > Hello all, > I need to know how to clear the $ENV variables. For example, I use a > .htaccess file for specific directories which requires the user to enter > userID and password. When they exit the page, I want them to have t

RE: Multiple authentication methods

2002-02-12 Thread Stathy G. Touloumis
That is odd, I would check the interface for the authentication modules and be sure that they are being used properly. It may help to also put in some debug/trace statements to figure out where things are failing or not working as expected : ) > This way, I do not get any failure messages, but t

Re: mod_perl + UNIVERSAL

2002-02-12 Thread Perrin Harkins
> I think the problem here is that mod_perl sets the assbackward flag > when setting headers via send_cgi_header() (which CGI.pm does). Is this only an issue when using CGI.pm or PerlSendHeader then? I seem to recall having no trouble doing this from a normal handler. - Perrin

AW: Multiple authentication methods

2002-02-12 Thread Marcel Weber
Hi This way, I do not get any failure messages, but the authenication does not work at all. Say, it does not matter wat password your typing in, you get always authenticated. Even when one auf the handlers logs a violation and return AUTH_REQUIRED / DECLINED. package Apache::AuthenIntra; use st

Re: POST without any content - sometimes

2002-02-12 Thread Ged Haywood
Hi there, On Tue, 12 Feb 2002, Anders Knuts wrote: > I have a board script to which users can post (of course) > One IP-address has sometimes problems posting to that script, though. [snip] > really isn't mine, but what causes it??? How can the POST loose it's > content like that? [snip] Could i

Re: Influencing @INC list

2002-02-12 Thread Ged Haywood
Hi there, On Mon, 11 Feb 2002, Kevin Slean wrote: > I need to run multiple apache servers on one Solaris 2.7 box configured in > such a way that each of them accesses their own private copy of perl > libraries. Could you accept recompiling Perl without the couple of paths which get in the way,

Re: About PerlLogHandler phase

2002-02-12 Thread Ged Haywood
Hi there, On Tue, 12 Feb 2002, James G Smith wrote: > "Randy J. Ray" <[EMAIL PROTECTED]> wrote: > > >* Are there ways to register other log types, in addition to the access, > > error, etc.? Such that people could specify those (and a format) the > > same way they specify the others? More to

POST without any content - sometimes

2002-02-12 Thread Anders Knuts
Hi! I have a board script to which users can post (of course) One IP-address has sometimes problems posting to that script, though. Look at the log's below. xxx.xxx.25.50 - - [10/Feb/2002:21:15:33 +0100] "POST /cgi-bin/mboard/message.pl HTTP/1.1" 200 88 "-" "Mozilla/4.0 (compatible; MSIE 5.5; Win

Re: Genius for hire

2002-02-12 Thread Ged Haywood
Hi there, On 11 Feb 2002, jon schatz wrote: > Can I request then that the suggested tag [JOB] be used for such > postings? Please see http://perl.apache.org/email-etiquette.html 73, Ged.

RE: Multiple authentication methods

2002-02-12 Thread Stathy G. Touloumis
> I also tried something like this at first. But I get this error message in > my apache/error.log > > > [Tue Feb 12 20:20:59 2002] [error] Can't locate object method > "handler" via > package "Apache::AuthenS > mb" (perhaps you forgot to load "Apache::AuthenSmb"?) at > /usr/share/perl5/Apache/Aut

AW: Multiple authentication methods

2002-02-12 Thread Marcel Weber
Thank you! I also tried something like this at first. But I get this error message in my apache/error.log [Tue Feb 12 20:20:59 2002] [error] Can't locate object method "handler" via package "Apache::AuthenS mb" (perhaps you forgot to load "Apache::AuthenSmb"?) at /usr/share/perl5/Apache/AuthenI

Re: mod_perl + UNIVERSAL

2002-02-12 Thread Geoffrey Young
> >* Despite numerous heroic efforts, HTTP HEAD requests are still screwed! > >Apache::Registry serves HEAD + Body, and Geoffrey's Apache::HEADRegistry > >doesn't work with redirects and 404's (I get like two headers and 3 > >bodies for 404's. Now that's verbose :-)) > > > No real mod_perl probl

RE: Multiple authentication methods

2002-02-12 Thread Stathy G. Touloumis
> The get_handlers code is out of AuthenSmb as I do not have the slightest > idea of how to get the results of the called function. Hmmm, It would seem that it would be better to call the function directly from your handler. I am not sure how the AuthenSmb handlers should be called but you should

RE: [Fwd: Samba authorization]

2002-02-12 Thread Stathy G. Touloumis
It seems that the problem does not reside with Smb.pm but with the shared object file Smb.so

Re: Question...

2002-02-12 Thread Uwe Voelker
> I need to know how to clear the $ENV variables. For example, I use a > .htaccess file for specific directories which requires the user to enter > userID and password. When they exit the page, I want them to have to > re-enter userID and passwd if they enter the page again. Does anyone > know

Re: [OT] Opera Cookies

2002-02-12 Thread Vivek Khera
> "RL" == Robert Landrum <[EMAIL PROTECTED]> writes: RL> I've recently come across some interesting behavior with Opera on linux. RL> When I set a cookie using CGI::Cookie and Set-Cookie: headers, and RL> then perform a JavaScript redirect to another page, the cookie IS NOT In my experience,

Re: [WOT] Google Programming Contest.

2002-02-12 Thread Vivek Khera
> "ABH" == Ask Bjoern Hansen <[EMAIL PROTECTED]> writes: ABH> The myth lives on. :-) It's not quite true. It was at UCLA and ABH> the story was different: ABH> http://nntp.perl.org/group/perl.advocacy;max=961 ABH> http://nntp.perl.org/group/perl.advocacy/956 Quite lame to make a programmi

Question...

2002-02-12 Thread Ron Beck
Hello all, I need to know how to clear the $ENV variables. For example, I use a .htaccess file for specific directories which requires the user to enter userID and password. When they exit the page, I want them to have to re-enter userID and passwd if they enter the page again. Does anyone kno

Re: Multiple authentication methods

2002-02-12 Thread Aaron Ross
> > >AuthName Test >AuthType Basic >PerlSetVar myPDC SAMBA >PerlSetVar myDOMAIN ARBEITSGRUPPE >PerlAuthenHandler Apache::AuthenSmb Apache::AuthSybase >require valid-user > > is mod_perl compiled with STACKED HANDLERS? the first module to run will need to return DECLIN

Re: [Q] Apache::File->new

2002-02-12 Thread Martin Haase-Thomas
Ok, these are the lines from httpd.conf. The default-handler in /app/jsp is inserted because I hope that i'll get resin taking over the request in case the .pm declines. (hope this is right)     RewriteRule ^(.*)/(intl|de)/(.*) $1/jsp/$3 [QSA]     RewriteRule ^/$ /app/jap/home.jsp/23323.html [

Re: [Q] Apache::File->new

2002-02-12 Thread Geoffrey Young
Martin Haase-Thomas wrote: > > Hi, > I searched in the book, I searched in the FAQs - no I ask u: > > Does Apache::File->new start a subrequest? no. it is merely a layer over Perl's file IO methods (Perl_do_open from what I can see). > There are some mystical lines > in my rewrite_log, which

Re: mod_perl + UNIVERSAL

2002-02-12 Thread Issac Goldstand
Jean-Michel Hiver wrote: >>>* If you have two *different* modules which have the same name, then >>>either one, or the other is loaded in memory, never both. This is >>>dead annoying. I think Perl standard modules + CPAN modules should be >>>shared, other modules which are specific to a given scr

Re: mod_perl + UNIVERSAL

2002-02-12 Thread Jean-Michel Hiver
> >* If you have two *different* modules which have the same name, then > >either one, or the other is loaded in memory, never both. This is > >dead annoying. I think Perl standard modules + CPAN modules should be > >shared, other modules which are specific to a given script should not. > > > And

Re: mod_perl + UNIVERSAL

2002-02-12 Thread Tatsuhiko Miyagawa
On Tue, 12 Feb 2002 14:15:37 +1100 "Morton-Allen, Matthew" <[EMAIL PROTECTED]> wrote: > However both applications make use of the UNIERVSAL package to create > universally accessible methods (to return the current database handle for > example) within the application. You don't need UNIVERSAL f

Re: mod_perl + UNIVERSAL

2002-02-12 Thread Issac Goldstand
Jean-Michel Hiver wrote: [snip] > >A list of things I've noticed: > >* If you have two *different* modules which have the same name, then >either one, or the other is loaded in memory, never both. This is >dead annoying. I think Perl standard modules + CPAN modules should be >shared, other modul

Re: mod_perl + UNIVERSAL

2002-02-12 Thread Jean-Michel Hiver
> The thing is I am getting some weird behaviour where one application seems > to be getting code from the other. In theory this isn't possible with the > separated namespaces. I suspect my UNIERVSAL use is the problem. Can anyone > verify this? Is it a known problem? Is there any way around it?

[Q] Apache::File->new

2002-02-12 Thread Martin Haase-Thomas
Hi, I searched in the book, I searched in the FAQs - no I ask u: Does Apache::File->new start a subrequest? There are some mystical lines in my rewrite_log, which might come from there. Thanx a lot Martin

Re: About PerlLogHandler phase

2002-02-12 Thread David Wright
On Mon, 11 Feb 2002, Paul Lindner wrote: > On Mon, Feb 11, 2002 at 06:31:25PM -0800, Randy J. Ray wrote: > > > > * If I install a handler for PerlLogHandler, does the normal logging still > > take place? Is it a function of whether my handler returns OK, DECLINED, > > etc.? > > As far as I kn