Re: chown executed by the apache user

2006-08-03 Thread Tom Schindl
You could run the chown command using sudo if you are on *ix. http://www.courtesan.com/sudo/sudo.html Tom Christian Hauser schrieb: > Basel, Donnerstag, 3. August 2006, 07:51:47 > . > > *chown executed by the apache user* > > > Hello Mod_Perl List > > > I

Re: X-Forwarded-For

2006-08-03 Thread Jonathan Vanasco
thanks for the info. i just said screwit and i wrote a new module. Apache2::xForwardedFornication or Apache2::xForwardedFor i took Apache::ForwardedFor , tried to port it, disliked a lot of things, and decided this would be a good chance to just rewrite it entirely and add some new hook

Re: X-Forwarded-For

2006-08-03 Thread Randy Kobes
On Fri, 4 Aug 2006, John ORourke wrote: Jonathan Vanasco wrote: my mp2 needs to get the ip of the remote address on some installations, mp2 is on port 80 on other installations, mp2 is on 80xx and the ip is in X-Forwarded-For You could re-write the remote IP at an early stage - add a PerlF

Re: X-Forwarded-For

2006-08-03 Thread John ORourke
Jonathan Vanasco wrote: my mp2 needs to get the ip of the remote address on some installations, mp2 is on port 80 on other installations, mp2 is on 80xx and the ip is in X-Forwarded-For You could re-write the remote IP at an early stage - add a PerlFixupHandler or PerlTransHandler which goe

X-Forwarded-For

2006-08-03 Thread Jonathan Vanasco
my mp2 needs to get the ip of the remote address on some installations, mp2 is on port 80 on other installations, mp2 is on 80xx and the ip is in X-Forwarded-For i'd like to ensure that i pull the ip off the right place, under the right conditions. all of my get_ip() calls happen in a share

Re: chown executed by the apache user

2006-08-03 Thread Kevin A. McGrail
Write a daemon running as root that watches a db for files that need to be chowned and periodically runs the chown. Have your web app update the db which the daemon than watches. Make sure it can only chown files in certain directories. Fancy step 2 will be a wakeup message your web app sends

chown executed by the apache user

2006-08-03 Thread Christian Hauser
Basel, Donnerstag, 3. August 2006, 07:51:47 . *chown executed by the apache user* Hello Mod_Perl List I need to change the uid, 'chown' for a file via the apache-perl process. People can work via FTP/WebDAV on files, but also via a Web Interface. For the we

Re: Authentication

2006-08-03 Thread Jonathan Vanasco
On Aug 3, 2006, at 12:31 PM, Radoslaw Zielinski wrote: Valid: exists, hasn't expired, client's IP matches (ID might have been stolen somehow), etc. I find IP matching to be utterly useless. IPs for dialup/broadband users change like crazy as their ISPs funnel stuff into/out of proxies. my

Re: Authentication

2006-08-03 Thread Philip M. Gollucci
Radoslaw Zielinski wrote: > With persistent database connections and prepared statements it doesn't > hurt that much in terms of performance. Just make sure you're not > checking what you don't have to (images, *.css, etc). > Which is why (we) generally suggest that you don't setup handlers on Lo

Re: Authentication

2006-08-03 Thread Radoslaw Zielinski
Vladimir S. Tikhonjuk <[EMAIL PROTECTED]> [03-08-2006 13:51]: > The second method: simple handler, for example > http://localhost/login, which checks login and password, If everything > is O.K. make session, send cookie with session id. And another handler > which checks every reqest for Cookie

Re: PerlSetVar

2006-08-03 Thread Perrin Harkins
On Thu, 2006-08-03 at 08:47 +0300, Vladimir S. Tikhonjuk wrote: > Well, now I'll try to explain why I have asked such question. I have > startup.pl with connect_on_init dunction. > Also, I want to use Apache::AuthDBI. And I want options for > Apache::DBI->connect(...) to be stored into httpd.co

Re: PerlSetVar

2006-08-03 Thread Jonathan Vanasco
Well, now I'll try to explain why I have asked such question. I have startup.pl with connect_on_init dunction. Also, I want to use Apache::AuthDBI. And I want options for Apache::DBI->connect(...) to be stored into httpd.conf or another but the only place. I think that I could declare

PerlResponseHandler ignored

2006-08-03 Thread Cristi Barladeanu
Hello, I've tried to use one of the examples found in the mod_perl docs, but the PerlResponseHandler is not taken into consideration. My Perl module is: --- package Testing::Response; use strict; use Apache2::RequestRec (); # for $r->content_

Re: Authentication

2006-08-03 Thread Sean Davis
On 8/3/06 7:51 AM, "Vladimir S. Tikhonjuk" <[EMAIL PROTECTED]> wrote: > Hi all! > > I'm thinking about 2 methods of authentication users for my site. > May be you'll help me to choose one of them, or advice me something else. > > The first method: using PerlAuthenHandler on '/' Locati

Authentication

2006-08-03 Thread Vladimir S. Tikhonjuk
Hi all! I'm thinking about 2 methods of authentication users for my site. May be you'll help me to choose one of them, or advice me something else. The first method: using PerlAuthenHandler on '/' Location. The second method: simple handler, for example http://localhost/login, which

Re: [OT] Database Authentication

2006-08-03 Thread John ORourke
Not exactly a mod_perl question but I'm sure it's something we've all thought about before... Vladimir S. Tikhonjuk wrote: I want to make a Database Authentication for my site. I have a PostgreSQL Database. I made a connect_on_init by user 'web_user' to the database. The question is: whe

Database Authentication

2006-08-03 Thread Vladimir S. Tikhonjuk
HI all ! I want to make a Database Authentication for my site. I have a PostgreSQL Database. I made a connect_on_init by user 'web_user' to the database. The question is: where better to make site users ? Create them as database users and put into system pg_shadow and pg_group tables or c