Re: ANNOUNCE: Apache-AuthenNTLM 0.21

2002-09-04 Thread Gerald Richter

The URL

ftp://ftp.dev.ecos.de/pub/perl/ntlm/Apache-AuthenNTLM-0.21.tar.gz

has entered CPAN as

  file: $CPAN/authors/id/G/GR/GRICHTER/Apache-AuthenNTLM-0.21.tar.gz
  size: 49239 bytes
   md5: 292ec3e15bdb8c407b2b45704a147b09


This release mainly fixes bugs in the communication with the smb server.


The purpose of this module is to perform a user authentication via
Mircosofts NTLM protocol. This protocol is supported by all
versions of the Internet Explorer and is mainly usefull for intranets.
Depending on your preferences setting IE will supply your windows
logon credentials to the web server when the server asks for NTLM
authentication. This saves the user to type in his/her password again.

To support users that aren't using Internet Explorer, Apache::AuthenNTLM
can also perform basic authentication depending on it's configuration.

Enjoy

Gerald

Changes since 0.15:

0.21  03. Sept 2002

   - Fixed bug that had cut nonce on null byte, which cause
 smb auth to fail randomly

0.20  27. Aug 2002
   
   - Directly close connection to smb server after validation 

0.19  26. Aug 2002

   - Fixed in smbval c library to allow multiple connections at the same
 time (i.e. set VcNumber to 1 instead of 0)
   - Rewored serialziation code. It now makes sure that the whole
 request to the smb server is serialzied.
   - Added semtimeout directive to avoid endless locks.
   - Debug messages cleanup. Now can set ntlmdebug to 1 or 2 to
 get less/more verbose infomations.

0.18  23. Aug 2002

   - Update smbval library
   - Fixed problem with guest access. Before 0.18 smbval lib would
 logon any user if the domain contains a guest account.
 Patch from Eric Devolder.
   - Fixed problem that smbval lib cannot handle two requests at
 the same time. I don't know if this is a general problem
 of the smb protocol, but after doing a lot of research
 the only solution I found is to serialzie all requests
 to the server. See also PerlSetVar ntlmsemkey.
   - Added fallbackdomain which is used when the domain the user
 supplied is not configured. Patch from David B. Pasirstein.
   - Fixed missing headers for Basic Auth. Patch from  David B. Pasirstein.
   - Make username always lowercase in connection record, to avoid
 problems when comparing user name (e.g. in q require directive)

0.17  19. Apr 2002

   - fix bug with ntlmauthoritative off
   - fix compile problem on FreeBSD reported by Ryan Parr.

0.16  14. Apr 2002

   - Return DECLINE to pass request to next authentication handler
 in case ntlmauthoritative is not set and a communication error
 with the Domain Controller has occured.
   - Return DECLINE to pass request to next authentication handler
 in case ntlmauthoritative is not set and we have credentials
 for another authorization method given from the browser.
   - Log the connection header in debug mode to see if it's a keep
 alive request.


   
-
Gerald Richterecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:   Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice:+49 6133 925131
WWW:http://www.ecos.de  Fax:  +49 6133 925152
-






Re: User process ownership

2002-09-04 Thread simran

How about using "sudo" so that you can run a system command that can
"su" up to the correct account and do it. 

Alternatively, you can write a daemon that runs as root that you can
connect to that can do this... 

On Wed, 2002-09-04 at 20:09, Nico Erfurth wrote:
> John Stauffacher wrote:
> > All,
> > 
> > I've run into an interesting problem which I can't seem to figure out.
> > Here it is: I have created a web form/perl script that sets up a users
> > vacation file and .forward for them. Which works. The only problem is, I
> > cannot write to their home directory (because Apache does not have
> > rights to). The users *ARE* being authenticated via LDAP -- is there any
> > way I can spawn a process with the ownership of the user to write to
> > their directories within mod perl?
> 
> The best way is to write in a temp-file and run a cronjob every 5 
> minutes or so.
> 
> ciao
> 
> 
> 






ANNOUNCE: Apache::OpenIndex 1.05

2002-09-04 Thread George Sanderson

Apache::OpenIndex version 1.05 was uploaded to CPAN on 02 Sep 02.
New features include:

A UserDir directive was added to support user home directories.
(Thank Noam Solomon for the spot.)

A UserSite directive was added to allow multiple users to share a common
GID and site directory while denying each user's access to the other user
sites.  (Before each user required a unique GID.)

More HtmlText directives were added to provide HTML just before each of the
form objects.  (Thank Noam Solomon for the suggestion.)

During my haste, I left the internal version number set at 1.04b.  This is
a unique version number, so the error should not cause any problems.
However, I hope to be patient and either provide a new update because any
bug fixes reported or simply upload a subversion with the correct version
number included (1.05) in the near future
 
As always (except for the last 3 days when my ISP mysteriously reconfigured
the DSLAM) a demo is available at:
http://www.xorgate.com/Apache/OpenIndex/demo





Re: Seg Fault with PHP and Perl together

2002-09-04 Thread Ged Haywood

Hi there,

On Wed, 4 Sep 2002, Jon Harris wrote:

> I inherited a very happy cobalt raq3 with 2 sites using embedded Perl 
> which work very well. There are about 20 sites on the box. I needed to 
> get PHP running on the same box, so I made the module, added it into the 
> httpd.conf and PHP was working fine - Except that it broke the perl sites.

( Disclaimer: I don't use PHP. :)

Check out the mod_perl List archives, a number of people are doing
this kind of thing and there was a thread very recently about it.

You may perhaps find you need to compile a new Apache (static linking
instead of DSO), but it's no big deal.  But I'd first check those
archives, and maybe make sure that I'd used the same compiler for the
PHP module build as was used for Apache and mod_perl.  It's worth
checking the options used as well, things like large file support
can cause problems if they're not the same for each build.

I don't know if there are any issues with the versions of the various
bits of software you're using, there might be.  Perl 5.005 is getting
a little long in the tooth now, and you didn't say which Apache 1.3
you have, there are lots of them...

I wouldn't expect the problem to be related to EmbPerl but you never
know.  There's an EmbPerl site, check out the mod_perl home page for
the address, but Gerald Richter reads the posts here too.

And yes, it sometimes does matter what order you do things in - you
might find that the order of loading modules is important - but I
don't know of any particular problem with the modules you mentioned.
You could make a completely new Apache just to test things and run it
as a separate server, not listening to port 80 but to some other port.
There are lots of useful pointers to doing things like this in the
Guide, the mod_perl home page will lead you there too.

73,
Ged.








Memory problem

2002-09-04 Thread Udlei Nattis

hi,

i have one big problem

i'm using modperl 2.0 (last cvs), httpd 2.0 (last cvs), perl 5.8.0
using apache mpm = worker

when i start apache, size:
17277 nobody 8   0 13964  13M 13152 S 0.0  3.6   0:00 httpd

DBI.pm have problem, when i execute my script, DBI.pm open memorya but 
don't close
look

/usr/local/apache-2.0/bin/ab -n 10 http://127.0.0.1:84/test/module/dbi

17280 nobody 9   0 20876  20M  7412 S 4.4  5.4   0:00 httpd

try again:

17280 nobody 9   0 27396  26M  7412 S 0.0  7.1   0:00 httpd

any people have one ideia for clean this memory?

[]s

nattis




Re: Seg Fault with PHP and Perl together

2002-09-04 Thread WC -Sx- Jones


# mod_perl -
perl Makefile.PL \
USE_APXS=1 \
WITH_APXS=/usr/local/apache/bin/apxs \
EVERYTHING=1 \
USE_DSO=1

# PHP -
./configure --with-apxs=/usr/local/apache/bin/apxs \
  --enable-force-cgi-redirect \
  --enable-discard-path \
  --with-pear \
  --enable-safe-mode \
  --with-openssl \
  --enable-bcmath \
  --with-bz2 \
  --with-gdbm \
  --with-ndbm \
  --enable-dio \
  --enable-ftp \
  --with-ldap \
  --with-mysql=/usr/local/ \
  --with-pgsql \
  --enable-memory-limit

???/Sx ?



Re: Seg Fault with PHP and Perl together

2002-09-04 Thread wsheldah



Check the mail archives for this list, there was a thread about using perl and
php together not that long ago. I think that one suggestion was to compile
mod_perl statically with apache, and to load php as a module. Also, you may want
to upgrade your perl to at least 5.6.1, if not 5.8.0. Are you using apache
1.3.26? (anything older has a well-known security exploit). What version of
mod_perl?

Wes



Jon Harris <[EMAIL PROTECTED]> on 09/04/2002
01:17:44 PM

To:   [EMAIL PROTECTED]
cc:(bcc: Wesley Sheldahl/Lex/Lexmark)
Subject:  Seg Fault with PHP and Perl together



Hi

I inherited a very happy cobalt raq3 with 2 sites using embedded Perl
which work very well. There are about 20 sites on the box. I needed to
get PHP running on the same box, so I made the module, added it into the
httpd.conf and PHP was working fine - Except that it broke the perl sites.

The http error log entry is:
child pid 22610 exit signal Segmentation fault (11)

- the client gets a 'page not found error'.

All I have to do get perl working again is to comment out

LoadModule php4_module /usr/lib/apache/libphp4.so
(and)
AddModule mod_php4.c

and restart httpd, it works fine again, obviously minus the php

Bearing in mind, I am on about page 3 of "O'Reilly's Apache - The
definitive Guide" does anyone know the simplist way I can get it
working? I don't need any sites to use both embperl and php together.

This is a virtual site section in httpd.conf for one of the perl sites
(anonymised) there is also a big  chunk in the httpd.conf, not
sure if that is relevant here.

*

ServerName thedomain.com
ServerAdmin root
DocumentRoot /home/sites/site42/web
ServerAlias thedomain.com
PerlModule Apache::DBI
PerlModule HTML::Embperl
PerlSetEnv EMBPERL_OPTIONS 8208
PerlSetEnv EMBPERL_ESCMODE 0
RewriteEngine on
RewriteCond %{HTTP_HOST}!^0.0.0.0(:80)?$
RewriteCond %{HTTP_HOST}!^www.thedomain.com(:80)?$
RewriteRule ^/(.*)  http://www.thedomain.com/$1 [L,R]
RewriteOptions inherit
#
#SetHandler perl-script
#PerlHandler HTML::Embperl
#Options ExecCGI
#
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site42/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site42/users/$1/web/$3
# AddHandler server-parsed .shtml
# AddTypetext/html .shtml
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl

*

It looks like perl and PHP are getting in each others way, should I try
and make a new apache? what order should I do things in? Should I look
for another job? :), I need to get it working quickly and with the
minimum disruption to the server. Every time I try and do things like
this on a RAQ something breaks something else, usually its the GUI and I
get about 50 phone calls.

perl is version 5.005_03, Apache 1.3, PHP 4.21

TIA

Jon Harris
[EMAIL PROTECTED]











make tests fail

2002-09-04 Thread Robert D. Napiza

Hello,

I already had an Apache 1.3.29 installed, and am trying to install 
modperl_1.27.  Running make goes fine but when I run make test I get the 
following messages in the logs:

Prototype mismatch: sub Socket::INADDR_ANY vs () at 
/usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 328.
Prototype mismatch: sub Socket::INADDR_BROADCAST vs () at 
/usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 329.
Prototype mismatch: sub Socket::INADDR_LOOPBACK vs () at 
/usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 330.
Prototype mismatch: sub Socket::INADDR_LOOPBACK vs () at 
/usr/lib/perl5/5.6.0/i386-linux/Socket.pm line 331.


Can anyone shed some light on this for me?

Thanks,
Rob





Seg Fault with PHP and Perl together

2002-09-04 Thread Jon Harris

Hi

I inherited a very happy cobalt raq3 with 2 sites using embedded Perl 
which work very well. There are about 20 sites on the box. I needed to 
get PHP running on the same box, so I made the module, added it into the 
httpd.conf and PHP was working fine - Except that it broke the perl sites.

The http error log entry is:
child pid 22610 exit signal Segmentation fault (11)

- the client gets a 'page not found error'.

All I have to do get perl working again is to comment out

LoadModule php4_module /usr/lib/apache/libphp4.so
(and)
AddModule mod_php4.c

and restart httpd, it works fine again, obviously minus the php

Bearing in mind, I am on about page 3 of "O'Reilly's Apache - The 
definitive Guide" does anyone know the simplist way I can get it 
working? I don't need any sites to use both embperl and php together.

This is a virtual site section in httpd.conf for one of the perl sites 
(anonymised) there is also a big  chunk in the httpd.conf, not 
sure if that is relevant here.

*

ServerName thedomain.com
ServerAdmin root
DocumentRoot /home/sites/site42/web
ServerAlias thedomain.com
PerlModule Apache::DBI
PerlModule HTML::Embperl
PerlSetEnv EMBPERL_OPTIONS 8208
PerlSetEnv EMBPERL_ESCMODE 0
RewriteEngine on
RewriteCond %{HTTP_HOST}!^0.0.0.0(:80)?$
RewriteCond %{HTTP_HOST}!^www.thedomain.com(:80)?$
RewriteRule ^/(.*)  http://www.thedomain.com/$1 [L,R]
RewriteOptions inherit
#
#SetHandler perl-script
#PerlHandler HTML::Embperl
#Options ExecCGI
#
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site42/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site42/users/$1/web/$3
# AddHandler server-parsed .shtml
# AddTypetext/html .shtml
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl

*

It looks like perl and PHP are getting in each others way, should I try 
and make a new apache? what order should I do things in? Should I look 
for another job? :), I need to get it working quickly and with the 
minimum disruption to the server. Every time I try and do things like 
this on a RAQ something breaks something else, usually its the GUI and I 
get about 50 phone calls.

perl is version 5.005_03, Apache 1.3, PHP 4.21

TIA

Jon Harris
[EMAIL PROTECTED]







Found a fix... but it's ugly

2002-09-04 Thread Matt Harris

Here's the trouble I had to go through to fix this (I got it to work,
but I'm still searching for a better way - this is ugly as sin).  

Re-ran my apache configure with a -L in my LIBS for
/usr/local/lib/perl5/5.6.1/sun4-solaris/CORE
This got rid of all of the errors but one - something about DynaLoader.  
I then found
/usr/local/lib/perl5/5.6.1/sun4-solaris/auto/DynaLoader/DynaLoader.a
It wouldn't let me just -L that directory and use -lDynaLoader though -
no idea why not, complained about not finding libDynaLoader...
So I did an ar -x on the DynaLoader.a and grabbed DynaLoader.o, which I
then statically compiled into httpd.  
I feel dirty.  There's *got* to be something I'm missing here, a better
way to get around this issue.  I'm using perl5.6.1 from sunfreeware on
the system (in /usr/local - there's also some old default-Solaris-8
perl5.004.X stuff under /usr, but mod_perl always found 5.6.1 just fine
for me)... Never saw a reference to the old perl.  Maybe mod_perl just
doesn't like looking under /usr/local ?  (but I'd assume someone
would've made note of this by now and released a fix for it)



Re: Compilation error doing 'make' in the apache 1.3.26directory

2002-09-04 Thread Matt Harris

This apache will be packaged for use on multiple systems.  Most are
using perl5.6.1 from sunfreeware, some are using a home-compiled 5.8.0
to support some stuff we're running.  

"Narins, Josh" wrote:
> 
> Hey, off list, quick question.
> 
> Which perl are you using?
> 
> You might want to tell the list, unless I missed it in your post.
> 
> -Original Message-
> From: Matt Harris [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 04, 2002 10:15 AM
> To: [EMAIL PROTECTED]
> Subject: Compilation error doing 'make' in the apache 1.3.26 directory
> 
> I'm trying to build mod_perl statically with apache 1.3.26.  I just
> downloaded mod_perl last night (1.27).  When compiling apache itself (no
> errors doing anything in mod_perl itself, as per the instructions), I'm
> getting a *lot* of symbol referencing errors in libperl.a.  I can't find
> anything about this on the perl.apache.org docs search engine, or with a
> simple google search.  I'm probably just missing something
> simple/stupid.  This is a Solaris 8/SPARC box.  Any help is
> appreciated.  - Matt
> 
> Command being run by make which generates the error:
> 
> gcc  -DSOLARIS2=280 -I/usr/local/pkgs/build/www/php-4.2.2
> -I/usr/local/pkgs/build/www/php-4.2.2/main
> -I/usr/local/pkgs/build/www/php-4.2.2/main
> -I/usr/local/pkgs/build/www/php-4.2.2/Zend
> -I/usr/local/pkgs/build/www/php-4.2.2/Zend
> -I/usr/local/pkgs/build/www/php-4.2.2/TSRM
> -I/usr/local/pkgs/build/www/php-4.2.2/TSRM
> -I/usr/local/pkgs/build/www/php-4.2.2 -DUSE_EXPAT -I./lib/expat-lite
> `./apaci`\
>   -o httpd buildmark.o modules.o modules/perl/libperl.a
> modules/mod_dtcl/mod_dtcl.a modules/extra/libextra.a
> modules/php4/libphp4.a modules/standard/libstandard.a main/libmain.a
> ./os/unix/libos.a ap/libap.a  lib/expat-lite/libexpat.a -L/usr/local/lib
> -lbz2 -lm -ltcl8.3 -R/usr/ucblib -R/usr/local/lib  -L/usr/ucblib
> -L/usr/local/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4
> -lmodphp4  -lpam  -lbz2 -lcrypt -lresolv -lresolv -lresolv -lm -ldl
> -lnsl -lsocket  -lsocket -lcrypt   -lsocket -lnsl -lpthread -ldl
> 
> Here's a paste with all of the error...
> 
> Undefined   first referenced
>  symbol in file
> PL_tmps_ix  modules/perl/libperl.a(mod_perl.o)
> PL_markstack_maxmodules/perl/libperl.a(mod_perl.o)
> Perl_sv_taint   modules/perl/libperl.a(mod_perl.o)
> Perl_mg_set modules/perl/libperl.a(perl_util.o)
> PL_defoutgv modules/perl/libperl.a(perlio.o)
> Perl_newAV  modules/perl/libperl.a(mod_perl.o)
> Perl_block_gimmemodules/perl/libperl.a(Apache.o)
> Perl_newSV  modules/perl/libperl.a(mod_perl.o)
> PL_perl_destruct_level  modules/perl/libperl.a(mod_perl.o)
> PL_curpad   modules/perl/libperl.a(Apache.o)
> Perl_sv_upgrade modules/perl/libperl.a(Apache.o)
> Perl_pop_scope  modules/perl/libperl.a(mod_perl.o)
> PL_statcachemodules/perl/libperl.a(Apache.o)
> Perl_newXS  modules/perl/libperl.a(perlxsi.o)
> Perl_rsignal_state
> modules/perl/libperl.a(perl_config.o)
> PL_diehook  modules/perl/libperl.a(perl_util.o)
> boot_DynaLoader modules/perl/libperl.a(perlxsi.o)
> Perl_sv_2mortal modules/perl/libperl.a(mod_perl.o)
> perl_get_cv modules/perl/libperl.a(mod_perl.o)
> PL_defstash modules/perl/libperl.a(perl_util.o)
> PL_tmps_floor   modules/perl/libperl.a(mod_perl.o)
> perl_get_av modules/perl/libperl.a(mod_perl.o)
> PL_egid modules/perl/libperl.a(perl_util.o)
> PL_sv_undef modules/perl/libperl.a(mod_perl.o)
> Perl_sv_freemodules/perl/libperl.a(mod_perl.o)
> perl_get_hv modules/perl/libperl.a(Constants.o)
> Perl_dowantarraymodules/perl/libperl.a(Apache.o)
> Perl_sv_getsmodules/perl/libperl.a(perl_util.o)
> PL_patchlevel   modules/perl/libperl.a(mod_perl.o)
> Perl_av_makemodules/perl/libperl.a(mod_perl.o)
> Perl_save_destructor_x  modules/perl/libperl.a(mod_perl.o)
> Perl_hv_undef   modules/perl/libperl.a(perl_util.o)
> Perl_av_unshift modules/perl/libperl.a(perl_util.o)
> perl_destruct   modules/perl/libperl.a(mod_perl.o)
> PL_uid  modules/perl/libperl.a(perl_util.o)
> Perl_newRV  modules/perl/libperl.a(perl_util.o)
> perl_call_pvmodules/perl/libperl.a(Apache.o)
> Perl_save_aptr  modules/perl/libperl.a(mod_perl.o

Re: User process ownership

2002-09-04 Thread WC -Sx- Jones

In-Reply-To: <015501c25393$c8bd6af0$[EMAIL PROTECTED]>

With your current understanding of Perl/Apache - you cannot do this;
however EXPECT (written by Don Libes at expect.nist.gov) can do it --
if you are willing to get a better grip on security issues.

Once you see how the expect language works you will see a better way to
get Perl/Apache to do it as well :)

I know it is not likely the answer you want, but it is a valid path of
research AND it will work as it is what I was doing years ago when I
ran into similar security issues...

Cheers;
-Sx- :]


On Tuesday, September 3, 2002, at 05:49 PM, John Stauffacher wrote:

> rights to). The users *ARE* being authenticated via LDAP -- is there
> any




Compilation error doing 'make' in the apache 1.3.26 directory

2002-09-04 Thread Matt Harris

I'm trying to build mod_perl statically with apache 1.3.26.  I just
downloaded mod_perl last night (1.27).  When compiling apache itself (no
errors doing anything in mod_perl itself, as per the instructions), I'm
getting a *lot* of symbol referencing errors in libperl.a.  I can't find
anything about this on the perl.apache.org docs search engine, or with a
simple google search.  I'm probably just missing something
simple/stupid.  This is a Solaris 8/SPARC box.  Any help is
appreciated.  - Matt

Command being run by make which generates the error:

gcc  -DSOLARIS2=280 -I/usr/local/pkgs/build/www/php-4.2.2
-I/usr/local/pkgs/build/www/php-4.2.2/main
-I/usr/local/pkgs/build/www/php-4.2.2/main
-I/usr/local/pkgs/build/www/php-4.2.2/Zend
-I/usr/local/pkgs/build/www/php-4.2.2/Zend
-I/usr/local/pkgs/build/www/php-4.2.2/TSRM
-I/usr/local/pkgs/build/www/php-4.2.2/TSRM
-I/usr/local/pkgs/build/www/php-4.2.2 -DUSE_EXPAT -I./lib/expat-lite
`./apaci`\
  -o httpd buildmark.o modules.o modules/perl/libperl.a
modules/mod_dtcl/mod_dtcl.a modules/extra/libextra.a
modules/php4/libphp4.a modules/standard/libstandard.a main/libmain.a
./os/unix/libos.a ap/libap.a  lib/expat-lite/libexpat.a -L/usr/local/lib
-lbz2 -lm -ltcl8.3 -R/usr/ucblib -R/usr/local/lib  -L/usr/ucblib
-L/usr/local/lib -Lmodules/php4 -L../modules/php4 -L../../modules/php4
-lmodphp4  -lpam  -lbz2 -lcrypt -lresolv -lresolv -lresolv -lm -ldl
-lnsl -lsocket  -lsocket -lcrypt   -lsocket -lnsl -lpthread -ldl


Here's a paste with all of the error... 

Undefined   first referenced
 symbol in file
PL_tmps_ix  modules/perl/libperl.a(mod_perl.o)
PL_markstack_maxmodules/perl/libperl.a(mod_perl.o)
Perl_sv_taint   modules/perl/libperl.a(mod_perl.o)
Perl_mg_set modules/perl/libperl.a(perl_util.o)
PL_defoutgv modules/perl/libperl.a(perlio.o)
Perl_newAV  modules/perl/libperl.a(mod_perl.o)
Perl_block_gimmemodules/perl/libperl.a(Apache.o)
Perl_newSV  modules/perl/libperl.a(mod_perl.o)
PL_perl_destruct_level  modules/perl/libperl.a(mod_perl.o)
PL_curpad   modules/perl/libperl.a(Apache.o)
Perl_sv_upgrade modules/perl/libperl.a(Apache.o)
Perl_pop_scope  modules/perl/libperl.a(mod_perl.o)
PL_statcachemodules/perl/libperl.a(Apache.o)
Perl_newXS  modules/perl/libperl.a(perlxsi.o)
Perl_rsignal_state 
modules/perl/libperl.a(perl_config.o)
PL_diehook  modules/perl/libperl.a(perl_util.o)
boot_DynaLoader modules/perl/libperl.a(perlxsi.o)
Perl_sv_2mortal modules/perl/libperl.a(mod_perl.o)
perl_get_cv modules/perl/libperl.a(mod_perl.o)
PL_defstash modules/perl/libperl.a(perl_util.o)
PL_tmps_floor   modules/perl/libperl.a(mod_perl.o)
perl_get_av modules/perl/libperl.a(mod_perl.o)
PL_egid modules/perl/libperl.a(perl_util.o)
PL_sv_undef modules/perl/libperl.a(mod_perl.o)
Perl_sv_freemodules/perl/libperl.a(mod_perl.o)
perl_get_hv modules/perl/libperl.a(Constants.o)
Perl_dowantarraymodules/perl/libperl.a(Apache.o)
Perl_sv_getsmodules/perl/libperl.a(perl_util.o)
PL_patchlevel   modules/perl/libperl.a(mod_perl.o)
Perl_av_makemodules/perl/libperl.a(mod_perl.o)
Perl_save_destructor_x  modules/perl/libperl.a(mod_perl.o)
Perl_hv_undef   modules/perl/libperl.a(perl_util.o)
Perl_av_unshift modules/perl/libperl.a(perl_util.o)
perl_destruct   modules/perl/libperl.a(mod_perl.o)
PL_uid  modules/perl/libperl.a(perl_util.o)
Perl_newRV  modules/perl/libperl.a(perl_util.o)
perl_call_pvmodules/perl/libperl.a(Apache.o)
Perl_save_aptr  modules/perl/libperl.a(mod_perl.o)
Perl_save_sptr  modules/perl/libperl.a(mod_perl.o)
Perl_mg_sizemodules/perl/libperl.a(mod_perl.o)
perl_construct  modules/perl/libperl.a(mod_perl.o)
Perl_av_undef   modules/perl/libperl.a(mod_perl.o)
Perl_hv_delete  modules/perl/libperl.a(perl_util.o)
Perl_mg_findmodules/perl/libperl.a(perl_util.o)
Perl_do_openmodules/perl/libperl.a(Apache.o)
Perl_sv_derived_frommodules/perl/libperl.a(perl_util.o)
Perl_sv_unmagic modules/perl/libperl.a(mod_perl.o)
Perl_sv_setuv   modules/perl

[ANNOUNCE] Apache::SessionManager 0.02

2002-09-04 Thread Enrico Sorcinelli

A new version 0.02 of Apache::SessionManager is now available via CPAN

Download site for Apache::SessionManager

  http://www.cpan.org/authors/id/E/EN/ENRYS/Apache-SessionManager-0.02.tar.gz

Description
---

This package contains an Apache mod_perl module to manage HTTP sessions.
Apache::SessionManager is a mod_perl module that helps 
session management of a web application. This module is a 
wrapper around Apache::Session persistence framework for session data.
It creates a session object and makes it available to all other handlers 
transparenlty by putting it in pnotes. 

See SessionManager.pm pod for module documentation and use

Changes from previous version
-

+ Added control to bypass expiration time check in new sessions
+ Use of session in test handler t/lib/PrintEnv.pm
+ Added tested platforms in POD [BUGS] section
! Bug fix: corrected print on STDERR in _tieSession() (debug mode only)
! Corrected Makefile.PL httpd.conf's extra lines
! Updated POD (moved PerlTransHandler outside  section in
  a configuration example!)

Any suggestion are welcome

- Enrico




Re: User process ownership

2002-09-04 Thread Nico Erfurth

John Stauffacher wrote:
> All,
> 
> I've run into an interesting problem which I can't seem to figure out.
> Here it is: I have created a web form/perl script that sets up a users
> vacation file and .forward for them. Which works. The only problem is, I
> cannot write to their home directory (because Apache does not have
> rights to). The users *ARE* being authenticated via LDAP -- is there any
> way I can spawn a process with the ownership of the user to write to
> their directories within mod perl?

The best way is to write in a temp-file and run a cronjob every 5 
minutes or so.

ciao




Re: Apache::DBI new connects in error_log...

2002-09-04 Thread Enrico Sorcinelli

On Tue, 3 Sep 2002 10:36:30 -0700 (PDT)
"Anthony E." <[EMAIL PROTECTED]> wrote:

> 
> --- Enrico Sorcinelli <[EMAIL PROTECTED]>
> wrote:
> > On Tue, 3 Sep 2002 09:05:45 -0700 (PDT)
> > "Anthony E." <[EMAIL PROTECTED]> wrote:
> > 
> > > Hello,
> > > 
> > > I'm getting an awful lot of these error statements in
> > > my error_log file for apache:
> > > 
> > > --
> > > 25935 Apache::DBI new connect to
> > > 'db:1.2.3.4UserPassAutoCommit=1PrintError=1'
> > > --
> > > 
> > > It looks like they are happening for every database
> > > connection, like the db connections are not staying
> > > persistent. I'm using Apache::DBI in my startup.pl
> > > script under mod_perl. Also the web server has been
> > > crashing every 10 minutes, when the server load gets
> > > up to about 105.
> > > 
> > > any ideas?
> > > 
> > 
> > There are some additional informations that you
> > should supply
> > in order to help you, like
> > 
> > - Are connections per-user?
> How to i tell?

Hi Anthony,

Apache::DBI caches connection based on his args (dbd driver, user, password...)
and attributes. So, if your application uses a different user and/or 
attributes to connect to (a different?) database, every connection will be
cached. Also, every child could have these cached DB's handles.
Apache::DBI works very well for web applications that uses same DB user.

> > - Have you loaded Apache::DBI before DBI or before
> > any module that load it?
> Yes, in startup.pl.
> 

This doesn't assure that you have loaded it before!
For instance if you have in your httpd.conf:

PerlModule DBI (or any module that uses it)
before
PerlRequire /path/to/startup.pl

or load DBI (or any module that uses it) before Apache::DBI
in your startup.pl script.

> > - How many childs? (with Apache::DBI 1 child = 1
> > connection)
> How to i tell?

On Unix/Linux you can do this:

   ps -A | grep -c httpd 
 

Bye
- Enrico


[OT]: The 2.11-13 paragraphs of "mod_perl developers cookbook" are a good 
  recipe! (if you are a mod_perl developer you must to have it! ;-)