Apache::AuthenSmb on Windows

2003-11-05 Thread cramirez
Has anyone been able to use Apache::AuthenSmb on Windows? I'm trying to setup our UNIX Apache environment on a Windows box, but I'm having trouble compiling Authen::Smb. Actually, a better question might be, does anyone have any ideas on the best approach of implementing web authentication a

Re: Apache::Request->instance()

2003-11-05 Thread Stas Bekman
Eric Sammer wrote: answering just the first part of the question: If I recall, Apache->request() was being deprecated (or at least frowned upon)... Is this true? It's deprecated in mod_perl 2.0, not in mod_perl 1.0. Apache->request() has very little to do with Apache::Request. ___

Re: authentication with smb

2003-11-05 Thread cramirez
Awhile back, I encountered this same problem and found a solution from Matt Arnold's mod_perl post, which I cannot locate at the time. Anyhow, here's the fix that I've been using in our production environment. 1. Update Authen::Smb like so: use Fcntl qw(:flock); ... open S, "> /full/path/to/A

Apache::Request->instance()

2003-11-05 Thread Eric Sammer
Sorry if this is OT. If I recall, Apache->request() was being deprecated (or at least frowned upon)... Is this true? Also, (and I know it's a separate package, but) does anyone know if the same is true for Apache::Request->instance()? With regard to A::R->instance(), I ask because I was running

Re: [patch CGI.pm] fix the read() POST requests under 'SetHandler modperl'

2003-11-05 Thread Stas Bekman
Lincoln Stein wrote: $q = CGI->new(\*FH); I've read the source code of init() and it seems that if you pass the filehandle in this way, it never reaches read_from_client as you use this fh to populate $query_string right there in init(). The only place it's used is in: $fh = to_fileha

Re: [mp2] OutputFilter with UTF-8 characters

2003-11-05 Thread Stas Bekman
Matthew Darwin wrote: Stas Bekman wrote: I'd suggest to take whatever data you s/// and try it outside mod_perl first. May be your filter or some previous filter has truncated the UTF-8 char in the middle? You should be aware that other filters are not aware of the encoding, and they just giv

Re: [mp2] OutputFilter with UTF-8 characters

2003-11-05 Thread Matthew Darwin
Stas Bekman wrote: I'd suggest to take whatever data you s/// and try it outside mod_perl first. May be your filter or some previous filter has truncated the UTF-8 char in the middle? You should be aware that other filters are not aware of the encoding, and they just give you the amount of dat

Re: [mp2] OutputFilter with UTF-8 characters

2003-11-05 Thread Stas Bekman
Matthew Darwin wrote: I'm just wondering if anyone has any input on this issue. I'm implementing an output filter, like so: SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOutputFilterHandler Apache::Kinnetics::Output and I get the following error on some web pages that have U

Re: [patch CGI.pm] fix the read() POST requests under 'SetHandler modperl'

2003-11-05 Thread Stas Bekman
Lincoln Stein wrote: What it does now (in the version I sent out this AM) is to check whether the filehandle is STDIN. If not, it reverts to the old code. Otherwise it uses yours. Sound OK to you? No, this doesn't work: $fh eq \*STDIN because it can be: GLOB(0x86af9d8) main::STDIN STDIN th

[mp2] OutputFilter with UTF-8 characters

2003-11-05 Thread Matthew Darwin
I'm just wondering if anyone has any input on this issue. I'm implementing an output filter, like so: SetHandler perl-script PerlResponseHandler ModPerl::Registry PerlOutputFilterHandler Apache::Kinnetics::Output and I get the following error on some web pages that have UTF-8 data: [Wed Nov 0

Re: [patch CGI.pm] fix the read() POST requests under 'SetHandler modperl'

2003-11-05 Thread Lincoln Stein
$q = CGI->new(\*FH); Lincoln On Wednesday 05 November 2003 02:50 pm, Stas Bekman wrote: > Lincoln Stein wrote: > > No, it made sense for the fastCGI and original Apache::Request modules. > > The CGI state data potentially comes from many sources: sometimes from > > stdin and sometimes from mod_p

Re: [patch CGI.pm] fix the read() POST requests under 'SetHandler modperl'

2003-11-05 Thread Lincoln Stein
OK, I've traced through stuff. The current proposed fix will break the ability to read and write CGI state to temporary files, database handles, etc when operating under mod_perl. Possibly some of the persistent state engines use this, but I think I'll leave it as a known bug. Lincoln On Mon

Re: [patch CGI.pm] fix the read() POST requests under 'SetHandler modperl'

2003-11-05 Thread Lincoln Stein
Hi Stas, Actually the read_from_client method() is supposed to be overridden in subclasses so that it can read directly from mod_perl, fastCGI, etc. The thing's a mess at this point, and so I'm going to close my eyes, fold in Scott's changes, release it to the world, and hope nothing breaks.

Re: [patch CGI.pm] fix the read() POST requests under 'SetHandler modperl'

2003-11-05 Thread Lincoln Stein
What it does now (in the version I sent out this AM) is to check whether the filehandle is STDIN. If not, it reverts to the old code. Otherwise it uses yours. Sound OK to you? Lincoln On Wednesday 05 November 2003 03:05 pm, Stas Bekman wrote: > Lincoln Stein wrote: > >>Lincoln Stein wrote:

Re: Apache::AuthCookieNTLM

2003-11-05 Thread Shannon Eric Peevey
Leo Lapworth wrote: Hi All, The first version is available at: http://leo.cuckoo.org/projects/AuthCookieNTLM/ I'll tidy up the docs and add a bit more functionality tomorrow, debugging for example! - before uploading to CPAN. We decided against using Apache::AuthCookie in the end, it just seeme

Re: not so good of a performance

2003-11-05 Thread Perrin Harkins
On Wed, 2003-11-05 at 16:39, Frantzcy Paisible wrote: > The Slow part of my application is on HUGE function that overuses XML::Twig. You should look at that section to see if you can either cache part of it or change your approach. > That and a do 'config.lib'.. that I cannot easely get rid of.

Re: not so good of a performance

2003-11-05 Thread Frantzcy Paisible
Well, for startup and db connecting... it has done it's job. The Slow part of my application is on HUGE function that overuses XML::Twig. That and a do 'config.lib'.. that I cannot easely get rid of. I'm wondering if there are knowned issues with mod_perl <-> XML::Twig. Frantzcy On 05 Nov

Re: [mp2] POST of multipart/form-data broken in 1.99_10?

2003-11-05 Thread Stas Bekman
Christian Wetzig wrote: Stas Bekman wrote: [...] It's a known problem. I'll commit a fix soonish (I need to do some extra testing and rewrites). Meanwhile please replace - read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); + $r->read($buffer, $ENV{'CONTENT_LENGTH'}); That should do the trick. thank

Re: [mp2] POST of multipart/form-data broken in 1.99_10?

2003-11-05 Thread Christian Wetzig
Stas Bekman wrote: [...] It's a known problem. I'll commit a fix soonish (I need to do some extra testing and rewrites). Meanwhile please replace - read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); + $r->read($buffer, $ENV{'CONTENT_LENGTH'}); That should do the trick. thanks a lot, works fine. is th

Re: [patch CGI.pm] fix the read() POST requests under 'SetHandler modperl'

2003-11-05 Thread Stas Bekman
Lincoln Stein wrote: Lincoln Stein wrote: No, it made sense for the fastCGI and original Apache::Request modules. The CGI state data potentially comes from many sources: sometimes from stdin and sometimes from mod_perl. That part is clear, and we are good here. But you said something different.

Re: [patch CGI.pm] fix the read() POST requests under 'SetHandler modperl'

2003-11-05 Thread Stas Bekman
Lincoln Stein wrote: Hi Folks, Please test out the following alpha release of CGI.pm 3.01. Things that need to be examined: - regularly POST - multipart POST - file upload These were tested with only with mod_perl 2 with our own tests. - saving state to files/pipes and

Re: [patch CGI.pm] fix the read() POST requests under 'SetHandler modperl'

2003-11-05 Thread Stas Bekman
Lincoln Stein wrote: No, it made sense for the fastCGI and original Apache::Request modules. The CGI state data potentially comes from many sources: sometimes from stdin and sometimes from mod_perl. That part is clear, and we are good here. But you said something different. You said that read_f

Apache::AuthCookieNTLM

2003-11-05 Thread Leo Lapworth
Hi All, The first version is available at: http://leo.cuckoo.org/projects/AuthCookieNTLM/ I'll tidy up the docs and add a bit more functionality tomorrow, debugging for example! - before uploading to CPAN. We decided against using Apache::AuthCookie in the end, it just seemed over kill. By de

Re: [mp2] POST of multipart/form-data broken in 1.99_10?

2003-11-05 Thread Stas Bekman
Christian Wetzig wrote: Hi, the following worked fine under 1.99_09 in a perl module called from a simple mod_perl script (SetHandler perl-script, PerlHandler ModPerl::Registry): > read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); But after upgrading to 1.99_10, the content of $buffer stops after

Re: different versions of Perl

2003-11-05 Thread Stas Bekman
Wilt, Paul wrote: Stas: Actually there is continued overhead due to the fact that different instructions (that require a larger number of cycles to decode / dispatch) are used when calling subroutines and / or accessing memory in a shared environment. That would be a very badly designed shared lib

Re: [patch CGI.pm] fix the read() POST requests under 'SetHandler modperl'

2003-11-05 Thread Stas Bekman
Lincoln Stein wrote: OK, I've traced through stuff. The current proposed fix will break the ability to read and write CGI state to temporary files, database handles, etc when operating under mod_perl. Possibly some of the persistent state engines use this, but I think I'll leave it as a known

RE: [patch CGI.pm] fix the read() POST requests under 'SetHandler modperl'

2003-11-05 Thread Scott Beuker
Tested and working on my mod_perl 2 with ModPerl::Registry setup. Your scripts from /examples below work, and my problems from earlier on are not seen. Thanks, Scott Beuker > -Original Message- > From: Lincoln Stein [mailto:[EMAIL PROTECTED] > Sent: November 5, 2003 7:11 AM > To: Stas Bek

Re: not so good of a performance

2003-11-05 Thread Perrin Harkins
On Wed, 2003-11-05 at 10:13, Frantzcy Paisible wrote: > From the examples, small ones, the performance gains are like 200 to one and more. > But on real applications, like on bigger, more complicated scripts, what is to be > expected ? mod_perl helps with startup costs and connections to the dat

Re: not so good of a performance, now XML::Twig on mod_perl

2003-11-05 Thread Frantzcy Paisible
Yes, thank you, But I went through that one already... Maybe I shouw change my question to Anyone having issued with XML::Twig performance on top of mod_perl ? Frantzcy On Wed, 5 Nov 2003 15:08:20 +0100,Thomas Klausner <[EMAIL PROTECTED]> wrote: > Hi! > > On Wed, Nov 05, 2003 at 10:13:38

[mp2] POST of multipart/form-data broken in 1.99_10?

2003-11-05 Thread Christian Wetzig
Hi, the following worked fine under 1.99_09 in a perl module called from a simple mod_perl script (SetHandler perl-script, PerlHandler ModPerl::Registry): > read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'}); But after upgrading to 1.99_10, the content of $buffer stops after the header of the first

Re: not so good of a performance

2003-11-05 Thread Thomas Klausner
Hi! On Wed, Nov 05, 2003 at 10:13:38AM -0500, Frantzcy Paisible wrote: > Does anyone have a list of tips and/or tricks that could help improuve > performance ? http://perl.apache.org/docs/1.0/guide/performance.html -- #!/usr/bin/perl http://domm.zsi.at for(ref bl

not so good of a performance

2003-11-05 Thread Frantzcy Paisible
Hello everyone, I have some questions about performance of mod_perl. >From the examples, small ones, the performance gains are like 200 to one and more. But on real applications, like on bigger, more complicated scripts, what is to be expected ? I've converted a perl application last month.

RE: different versions of Perl

2003-11-05 Thread Wilt, Paul
Stas: Actually there is continued overhead due to the fact that different instructions (that require a larger number of cycles to decode / dispatch) are used when calling subroutines and / or accessing memory in a shared environment. Paul E Wilt Senior Principal Software Engineer ProQuest Inform

Re[2]: strange behavor

2003-11-05 Thread Andrey A. Kudrin
Hello Stas, Wednesday, November 05, 2003, 3:11:21 PM, you wrote: SB> Is it possible that you import functions with the same name from different SB> modules into the same script? If not, you really need to show us some *very* SB> short examples of your code so we can get the idea what your proble

Re: different versions of Perl

2003-11-05 Thread Stas Bekman
Gisle Aas wrote: Stas Bekman <[EMAIL PROTECTED]> writes: Hmm, I wonder about this para from that file: --- In terms of performance, on my test system (Solaris 2.5_x86) the perl test suite took roughly 15% longer to run with the shared libperl.so. Your system and typical applications may well giv

Re: strange behavor

2003-11-05 Thread Stas Bekman
Andrey A. Kudrin wrote: Hello Stas, Wednesday, November 05, 2003, 4:54:01 AM, you wrote: I have a mod_perl driven website and CMS for this site running under PerlRun. Site and CMS located in different direcories and use different modules, but have subroutines that have the same names. From some

Re[2]: strange behavor

2003-11-05 Thread Andrey A. Kudrin
Hello Stas, Wednesday, November 05, 2003, 4:54:01 AM, you wrote: >> I have a mod_perl driven website and CMS for this site running under >> PerlRun. Site and CMS located in different direcories and use >> different modules, but have subroutines that have the same names. >>>From some moment site b

Re: different versions of Perl

2003-11-05 Thread Gisle Aas
Stas Bekman <[EMAIL PROTECTED]> writes: > Hmm, I wonder about this para from that file: > > --- > In terms of performance, on my test system (Solaris 2.5_x86) the perl > test suite took roughly 15% longer to run with the shared libperl.so. > Your system and typical applications may well give quit

Re: [ANN] libapreq2-2.01-dev-rc1 release candidate #1

2003-11-05 Thread Randy Kobes
On Mon, 3 Nov 2003, Joe Schaefer wrote: > The first developer release of libapreq2 is underway. This > package provides the Perl modules Apache::Request and > Apache::Cookie for modperl-2, and requires the following: > > apache2 w/ mod_so: 2.0.46 >libapr: 0.9.4 >

Re: Specify location of makepl_args.mod_perl

2003-11-05 Thread Sreeji K Das
--- Stas Bekman <[EMAIL PROTECTED]> wrote: > Sreeji K Das wrote: > mod_perl build currently requires that > makepl_args.mod_perl is present in one of > > current, '..' or $ENV{HOME}. > ... > Why not do the simple: > > perl Makefile.PL `cat > /whereever/your/file/is/makepl_args.mod_perl` Then