Re: Performance Questions

2007-07-08 Thread John Drago

--- John ORourke <[EMAIL PROTECTED]> wrote:

> I've no experience of parsing XML on every request
> (not that I'd want 
> to, what an overhead!) but could you just output
> nothing in the response 
> phase, and put the XML object reference using  
> $r->pnotes('my_xml_object', $my_xml_object) then in
> your output filter 
> do $my_xml_object=$r->pnotes('my_xml_object') ?
> 

That's exactly what I would do.  In fact you may be
able to avoid generating and parsing the XML
altogether, and just use a regular Perl object
instead.  That is unless the data represented as XML
would lose something by not *being* XML.

Regards,
John Drago




   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz
 


Insecure dependency in unlink while running with -T switch

2007-07-08 Thread stevethames

mod_perl 2.0.1
Fedore Core 4
Apache
Taint Mode

I am trying to delete a file using an absolute path from a mod_perl script
running in taint mode under apache.  This error is where I stopped trying to
fix the problem and decided to use a cron job to delete files no longer
connected to active data in my database.

However, I would like to solve this problem and understand the pitfall. 
After many generations, the code patch looks like this:

my $fp = &$FP_DOCUMENTS($cid, $uid);
$ENV{'PATH'} = '';
delete @ENV{qw( IFS CDPATH ENV BASH_ENV )};
my $saved_euid = $>;
my $saved_egid = $);
$> = $<;
$) = $(;
$fp =~ /(.*)/;
unlink $fp;
$> = $saved_euid;
$) = $saved_egid;

I know both the path and the $fp variable are untainted as I was using a
check function to test it.  I know it works as I took it out of the camel
book and tested it.

The directory containing the target file has permissions of 2775 (including
sgid bit) and the owner and group are both 'ws'.  The target file has
permissions 0660, the group is 'ws', and the owner is 'apache', 'ws',
'tomcat', or 'wsftp', all of which are in the group 'ws'.  

I can perform the unlink from non-mod_perl scripts without a problem.  I
have not tested these scripts in Taint mode as I have no need for this.

I have read all that I can find regarding perl security and taint mode and
tried every solution I could find on the Internet with the exception of
forking a child process which is the last suggestion in the camel book--I
would really rather not do this from mod_perl under apache as I do not know
how it will affect apache if zombies get left in memory for whatever reason.

As I said, I will solve this problem for the moment by using a cron job.  If
anyone has any ideas, though, I'd love to hear them.




-- 
View this message in context: 
http://www.nabble.com/Insecure-dependency-in-unlink-while-running-with--T-switch-tf4045039.html#a11490226
Sent from the mod_perl - General mailing list archive at Nabble.com.



Re: Insecure dependency in unlink while running with -T switch

2007-07-08 Thread Clinton Gormley
> $fp =~ /(.*)/;


This doesn't untaint $fp.

instead, you could do this:

  ( $fp )=( $fp =~ /(.*)/ );

To untaint a variable using this method, you need to assign the result
of a regex capture to the variable, not just do a regex check

Clint



Re: Insecure dependency in unlink while running with -T switch

2007-07-08 Thread stevethames

Clint, you are a steely-eyed, missle man!

In fact, I had taken the statement '$fp =~ /(.+)/' directly from another
page as a posted solution to this problem without even looking at it.  After
your email, I felt like an idiot as it was obvious that all this statement
would do was set $& and $1.  

The is_tainted() subroutine from the camel book is clearly crap as I ran $fp
through there and it returned false.  I was surprised when your solution
worked because I did not think $fp was tainted to begin with although I had
checked through is_tainted().  It was not created from an environment
variable or command line argument and did not originate through piped or
file input.  Following your email, however, I realized $fp was tainted
bacause it came from a field value in a posted form.

Anyway, that solved my problem.  Just goes to show--always test the solution
someone posts even if you don't believe it will work.

Kudos, brother.
Steve


Clinton Gormley wrote:
> 
>> $fp =~ /(.*)/;
> 
> 
> This doesn't untaint $fp.
> 
> instead, you could do this:
> 
>   ( $fp )=( $fp =~ /(.*)/ );
> 
> To untaint a variable using this method, you need to assign the result
> of a regex capture to the variable, not just do a regex check
> 
> Clint
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Insecure-dependency-in-unlink-while-running-with--T-switch-tf4045039.html#a11490823
Sent from the mod_perl - General mailing list archive at Nabble.com.



Re: Insecure dependency in unlink while running with -T switch

2007-07-08 Thread Randal L. Schwartz
> "Clinton" == Clinton Gormley <[EMAIL PROTECTED] > writes:

>> $fp =~ /(.*)/;
Clinton> This doesn't untaint $fp.

Clinton> instead, you could do this:

Clinton>   ( $fp )=( $fp =~ /(.*)/ );

Don't forget the /s.  Remember, Unix paths can contain newline.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!


Re: Performance Questions

2007-07-08 Thread Marc M. Adkins
Well, I _am_ using XSLT for my template expansion.  That kind of makes 
XML important.


Thanks for the responses, and that's about what I figured I would try. 
Just wondering if anyone would answer "no it won't work because..."


John Drago wrote:

--- John ORourke <[EMAIL PROTECTED]> wrote:


I've no experience of parsing XML on every request
(not that I'd want 
to, what an overhead!) but could you just output
nothing in the response 
phase, and put the XML object reference using  
$r->pnotes('my_xml_object', $my_xml_object) then in
your output filter 
do $my_xml_object=$r->pnotes('my_xml_object') ?




That's exactly what I would do.  In fact you may be
able to avoid generating and parsing the XML
altogether, and just use a regular Perl object
instead.  That is unless the data represented as XML
would lose something by not *being* XML.

Regards,
John Drago




   

Got a little couch potato? 
Check out fun summer activities for kids.
http://search.yahoo.com/search?fr=oni_on_mail&p=summer+activities+for+kids&cs=bz 





First time being here, Need Big help here!

2007-07-08 Thread Xin Chen

Hi All,

Finally I find this place, I think it is the right place for me to solve 
this issue, here it is:


My system: VMware Virtual System:

brainzvm:~# uname -a
Linux brainzvm 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 
GNU/Linux

apache-perl 1.3 web server
Debian Linux

I got the following errors when I was trying to setup a debian web server.

[Thu Jul  5 18:53:42 2007] [error] Undefined subroutine 
&MusicBrainz::Server::Handlers::WS::1::Auth::handler called.\n
Cache MISS on istagger-192.168.11.1 at 
/home/httpd/musicbrainz/mb_server/cgi-bin/MusicBrainz/Server/Handlers.pm 
line 274
[Thu Jul  5 18:53:43 2007] [error] Can't locate Apache/AuthDigest/API.pm 
in @INC (@INC contains: /home/httpd/musicbrainz/mb_server/cgi-bin 
/etc/perl /usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 
/usr/local/lib/site_perl /usr/local/lib/perl/5.8.7 
/usr/local/share/perl/5.8.7 . /etc/apache-perl/ 
/etc/apache-perl/lib/perl) at 
/home/httpd/musicbrainz/mb_server/cgi-bin/MusicBrainz/Server/Handlers/WS/1/Auth.pm 
line 32.\nBEGIN failed--compilation aborted at 
/home/httpd/musicbrainz/mb_server/cgi-bin/MusicBrainz/Server/Handlers/WS/1/Auth.pm 
line 32.\nCompilation failed in require at (eval 239) line 3.\n


Then I tried to install Apache::AuthDigest.
#cpan
#install Apache::AuthDigest
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1121: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1140: error: 
expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1141: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1142: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1143: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1147: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1149: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1150: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1155: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1156: error: 
expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1157: error: 
expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1160: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1161: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1165: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1170: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1173: error: 
expected declaration specifiers or '...' before 'server_rec'
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1174: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1175: error: 
expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1267: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1269: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1270: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1281: error: 
expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1282: error: 
expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1283: error: 
expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1284: error: 
expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1290: error: 
expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1291: error: 
expected ')' before '*' token

API.c: In function 'XS_Apache__AuthDigest__API_note_digest_auth_failure':
API.c:24: error: 'Apache' undeclared (first use in this function)
API.c:24: error: (Each undeclared identifier is reported only once
API.c:24: error: for each function it appears in.)
API.c:24: error: expected ';' before 'r'
API.c:26: error: 'r' undeclared (first use in this function)
make[1]: *** [API.o] Error 1
make[1]: Leaving directory `/root/.cpan/build/Apache-AuthDigest-0.022/API'
make: *** [subdirs] Error 2
/usr/bin/make  -- NOT OK
Runni

Re: Performance Questions

2007-07-08 Thread John ORourke

Marc M. Adkins wrote:
Well, I _am_ using XSLT for my template expansion.  That kind of makes 
XML important.


Thanks for the responses, and that's about what I figured I would try. 
Just wondering if anyone would answer "no it won't work because..."


Let us know how it goes - using XSLT that way is often desirable from a 
developer's point of view, but is usually impractical due to the 
processing overhead.  If you end up successfully using this technique in 
production without complaints from users please let the list know, I'm 
sure a few other people are curious too!


cheers
John



Re: First time being here, Need Big help here!

2007-07-08 Thread Foo JH
I'm not too good with Debian either, but since you're installing a new 
OS, my guess is you can also choose the version of the applications as well.


Try installing Apache 2 or 2.2 with modperl 2, instead of Apache 1.3 + 
modperl. The latter is running on legacy support now.


Xin Chen wrote:

Hi All,

Finally I find this place, I think it is the right place for me to 
solve this issue, here it is:


My system: VMware Virtual System:

brainzvm:~# uname -a
Linux brainzvm 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 
GNU/Linux

apache-perl 1.3 web server
Debian Linux

I got the following errors when I was trying to setup a debian web 
server.


[Thu Jul  5 18:53:42 2007] [error] Undefined subroutine 
&MusicBrainz::Server::Handlers::WS::1::Auth::handler called.\n
Cache MISS on istagger-192.168.11.1 at 
/home/httpd/musicbrainz/mb_server/cgi-bin/MusicBrainz/Server/Handlers.pm 
line 274
[Thu Jul  5 18:53:43 2007] [error] Can't locate 
Apache/AuthDigest/API.pm in @INC (@INC contains: 
/home/httpd/musicbrainz/mb_server/cgi-bin /etc/perl 
/usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 
/usr/local/lib/site_perl /usr/local/lib/perl/5.8.7 
/usr/local/share/perl/5.8.7 . /etc/apache-perl/ 
/etc/apache-perl/lib/perl) at 
/home/httpd/musicbrainz/mb_server/cgi-bin/MusicBrainz/Server/Handlers/WS/1/Auth.pm 
line 32.\nBEGIN failed--compilation aborted at 
/home/httpd/musicbrainz/mb_server/cgi-bin/MusicBrainz/Server/Handlers/WS/1/Auth.pm 
line 32.\nCompilation failed in require at (eval 239) line 3.\n


Then I tried to install Apache::AuthDigest.
#cpan
#install Apache::AuthDigest
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1121: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1140: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1141: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1142: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1143: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1147: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1149: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1150: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1155: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1156: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1157: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1160: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1161: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1165: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1170: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1173: 
error: expected declaration specifiers or '...' before 'server_rec'
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1174: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1175: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1267: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1269: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1270: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1281: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1282: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1283: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1284: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1290: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1291: 
error: expected ')' before '*' token

API.c: In function 'XS_Apache__AuthDigest__API_note_digest_auth_failure':
API.c:24: error: 'Apache' undeclared (first use in this function)
API.c:24: error: (Each undeclared identifier is reported only once
API.c:24: error: 

Re: Performance Questions

2007-07-08 Thread Foo JH




Let us know how it goes - using XSLT that way is often desirable from 
a developer's point of view, but is usually impractical due to the 
processing overhead.  If you end up successfully using this technique 
in production without complaints from users please let the list know, 
I'm sure a few other people are curious too!
Just a personal opinion: wouldn't xslt juice out the cpu faster than a 
conventional template engine (eg. HTML::Template)? If you are running a 
fairly high-use environment, you may want to implement stuff that is 
easy on the processor.


Thinking aloud though, perhaps if the xslt engine caches the compiled 
xslt file, performance may improve...




Re: First time being here, Need Big help here!

2007-07-08 Thread Xin Chen
Can I just update from apache1.3 to apache 2, and modperl 2 ? I will try 
this.

Thanks!

Foo JH wrote:

I'm not too good with Debian either, but since you're installing a new 
OS, my guess is you can also choose the version of the applications as 
well.


Try installing Apache 2 or 2.2 with modperl 2, instead of Apache 1.3 + 
modperl. The latter is running on legacy support now.


Xin Chen wrote:


Hi All,

Finally I find this place, I think it is the right place for me to 
solve this issue, here it is:


My system: VMware Virtual System:

brainzvm:~# uname -a
Linux brainzvm 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 
GNU/Linux

apache-perl 1.3 web server
Debian Linux

I got the following errors when I was trying to setup a debian web 
server.


[Thu Jul  5 18:53:42 2007] [error] Undefined subroutine 
&MusicBrainz::Server::Handlers::WS::1::Auth::handler called.\n
Cache MISS on istagger-192.168.11.1 at 
/home/httpd/musicbrainz/mb_server/cgi-bin/MusicBrainz/Server/Handlers.pm 
line 274
[Thu Jul  5 18:53:43 2007] [error] Can't locate 
Apache/AuthDigest/API.pm in @INC (@INC contains: 
/home/httpd/musicbrainz/mb_server/cgi-bin /etc/perl 
/usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 
/usr/local/lib/site_perl /usr/local/lib/perl/5.8.7 
/usr/local/share/perl/5.8.7 . /etc/apache-perl/ 
/etc/apache-perl/lib/perl) at 
/home/httpd/musicbrainz/mb_server/cgi-bin/MusicBrainz/Server/Handlers/WS/1/Auth.pm 
line 32.\nBEGIN failed--compilation aborted at 
/home/httpd/musicbrainz/mb_server/cgi-bin/MusicBrainz/Server/Handlers/WS/1/Auth.pm 
line 32.\nCompilation failed in require at (eval 239) line 3.\n


Then I tried to install Apache::AuthDigest.
#cpan
#install Apache::AuthDigest
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1121: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1140: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1141: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1142: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1143: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1147: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1149: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1150: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1155: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1156: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1157: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1160: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1161: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1165: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1170: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1173: 
error: expected declaration specifiers or '...' before 'server_rec'
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1174: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1175: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1267: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1269: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1270: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1281: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1282: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1283: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1284: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1290: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1291: 
error: expected ')' before '*' token
API.c: In function 
'XS_Apache__AuthDigest__API_note_digest_auth_failure':

API.c:24: error: 'Apache' undeclared (firs

Re: First time being here, Need Big help here!

2007-07-08 Thread Foo JH
I doubt. Apache2 is a major overhaul. You're better off installing 
apache2 or 2.2 from scratch.


Do note that modperl1 is not compatible with apache 2.

Xin Chen wrote:
Can I just update from apache1.3 to apache 2, and modperl 2 ? I will 
try this.

Thanks!

Foo JH wrote:

I'm not too good with Debian either, but since you're installing a 
new OS, my guess is you can also choose the version of the 
applications as well.


Try installing Apache 2 or 2.2 with modperl 2, instead of Apache 1.3 
+ modperl. The latter is running on legacy support now.


Xin Chen wrote:


Hi All,

Finally I find this place, I think it is the right place for me to 
solve this issue, here it is:


My system: VMware Virtual System:

brainzvm:~# uname -a
Linux brainzvm 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 i686 
GNU/Linux

apache-perl 1.3 web server
Debian Linux

I got the following errors when I was trying to setup a debian web 
server.


[Thu Jul  5 18:53:42 2007] [error] Undefined subroutine 
&MusicBrainz::Server::Handlers::WS::1::Auth::handler called.\n
Cache MISS on istagger-192.168.11.1 at 
/home/httpd/musicbrainz/mb_server/cgi-bin/MusicBrainz/Server/Handlers.pm 
line 274
[Thu Jul  5 18:53:43 2007] [error] Can't locate 
Apache/AuthDigest/API.pm in @INC (@INC contains: 
/home/httpd/musicbrainz/mb_server/cgi-bin /etc/perl 
/usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 
/usr/local/lib/site_perl /usr/local/lib/perl/5.8.7 
/usr/local/share/perl/5.8.7 . /etc/apache-perl/ 
/etc/apache-perl/lib/perl) at 
/home/httpd/musicbrainz/mb_server/cgi-bin/MusicBrainz/Server/Handlers/WS/1/Auth.pm 
line 32.\nBEGIN failed--compilation aborted at 
/home/httpd/musicbrainz/mb_server/cgi-bin/MusicBrainz/Server/Handlers/WS/1/Auth.pm 
line 32.\nCompilation failed in require at (eval 239) line 3.\n


Then I tried to install Apache::AuthDigest.
#cpan
#install Apache::AuthDigest
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1121: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1140: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1141: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1142: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1143: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1147: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1149: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1150: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1155: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1156: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1157: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1160: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1161: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1165: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1170: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1173: 
error: expected declaration specifiers or '...' before 'server_rec'
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1174: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1175: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1267: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1269: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1270: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1281: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1282: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1283: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1284: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1290: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules

Re: First time being here, Need Big help here!

2007-07-08 Thread Xin Chen
Thanks for your tips! I will reinstall Apache2 and have a try. Hopelly, 
I can install AuthDigest in Apache2 and modperl2.


Foo JH wrote:

I doubt. Apache2 is a major overhaul. You're better off installing 
apache2 or 2.2 from scratch.


Do note that modperl1 is not compatible with apache 2.

Xin Chen wrote:

Can I just update from apache1.3 to apache 2, and modperl 2 ? I will 
try this.

Thanks!

Foo JH wrote:

I'm not too good with Debian either, but since you're installing a 
new OS, my guess is you can also choose the version of the 
applications as well.


Try installing Apache 2 or 2.2 with modperl 2, instead of Apache 1.3 
+ modperl. The latter is running on legacy support now.


Xin Chen wrote:


Hi All,

Finally I find this place, I think it is the right place for me to 
solve this issue, here it is:


My system: VMware Virtual System:

brainzvm:~# uname -a
Linux brainzvm 2.6.18-4-686 #1 SMP Mon Mar 26 17:17:36 UTC 2007 
i686 GNU/Linux

apache-perl 1.3 web server
Debian Linux

I got the following errors when I was trying to setup a debian web 
server.


[Thu Jul  5 18:53:42 2007] [error] Undefined subroutine 
&MusicBrainz::Server::Handlers::WS::1::Auth::handler called.\n
Cache MISS on istagger-192.168.11.1 at 
/home/httpd/musicbrainz/mb_server/cgi-bin/MusicBrainz/Server/Handlers.pm 
line 274
[Thu Jul  5 18:53:43 2007] [error] Can't locate 
Apache/AuthDigest/API.pm in @INC (@INC contains: 
/home/httpd/musicbrainz/mb_server/cgi-bin /etc/perl 
/usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 
/usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 
/usr/share/perl/5.8 /usr/local/lib/site_perl 
/usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 . 
/etc/apache-perl/ /etc/apache-perl/lib/perl) at 
/home/httpd/musicbrainz/mb_server/cgi-bin/MusicBrainz/Server/Handlers/WS/1/Auth.pm 
line 32.\nBEGIN failed--compilation aborted at 
/home/httpd/musicbrainz/mb_server/cgi-bin/MusicBrainz/Server/Handlers/WS/1/Auth.pm 
line 32.\nCompilation failed in require at (eval 239) line 3.\n


Then I tried to install Apache::AuthDigest.
#cpan
#install Apache::AuthDigest
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1121: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1140: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1141: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1142: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1143: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1147: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1149: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1150: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1155: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1156: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1157: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1160: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1161: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1165: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1170: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1173: 
error: expected declaration specifiers or '...' before 'server_rec'
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1174: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1175: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1267: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1269: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1270: 
error: expected ')' before '*' token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1281: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1282: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1283: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr/lib/perl5/auto/Apache/include/modules/perl/mod_perl.h:1284: 
error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' 
token
/usr

Apache2-AuthenNTLM Hanging

2007-07-08 Thread Matt Martz
I am using Apache2-AuthenNTLM and it works most of the time but in some cases 
it gets to this point:

AuthenNTLM: Verify user johndoe via smb server

And it hangs infinitely or until I restart Apache.  Due to this the pages will 
never load.  Is there a way to specify a timeout that would apply to this step.

What would be great is if it reaches this timeout that it would retry for a 
specified number of times.

Thanks!

-Matt

The information transmitted in this email is intended only for the person(s) or 
entity to which it is addressed and may contain confidential and/or privileged 
material. Any review, retransmission, dissemination or other use of, or taking 
of any action in reliance upon, this information by persons or entities other 
than the intended recipient is prohibited. If you received this email in error, 
please contact the sender and permanently delete the email from any computer.