Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 61751 invoked from network); 14 Dec 2009 17:16:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Dec 2009 17:16:44 -0000 Received: (qmail 39271 invoked by uid 500); 14 Dec 2009 17:16:42 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 39210 invoked by uid 500); 14 Dec 2009 17:16:42 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 39202 invoked by uid 99); 14 Dec 2009 17:16:42 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Dec 2009 17:16:42 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.86.89.69] (HELO elasmtp-mealy.atl.sa.earthlink.net) (209.86.89.69) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Dec 2009 17:16:32 +0000 Received: from [72.244.200.134] (helo=[192.168.1.25]) by elasmtp-mealy.atl.sa.earthlink.net with esmtpa (Exim 4.67) (envelope-from ) id 1NKEWm-0000VZ-0P; Mon, 14 Dec 2009 12:16:10 -0500 Message-ID: <4B2672D9.2030307@scherrer.com> Date: Mon, 14 Dec 2009 09:16:09 -0800 From: Jay Scherrer Organization: Scherrer Company User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tosh Cooey CC: modperl@perl.apache.org Subject: Re: mod_perl waters too deep References: <4B265657.7080106@1200group.com> In-Reply-To: <4B265657.7080106@1200group.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: 788297b36b90ba0994f5150ab1c16ac0da8416a478439239dfaa09ba8d77e53d526bb3f3b1303485350badd9bab72f9c350badd9bab72f9c350badd9bab72f9c X-Originating-IP: 72.244.200.134 X-Virus-Checked: Checked by ClamAV on apache.org Tosh, If your users are already verified or not, try using a switch statement based on their inputs directing them to the needed function. If they already have cookie info use that as your switch/case redirection. Jay Scherrer Tosh Cooey wrote: > You may have seen my other recent questions to the list this month, the > gist of which is: > > I want to setup an application for multiple clients, each of whom have > their own users. > > http://www.site.com/clientA/application.pl > http://www.site.com/clientB/application.pl > http://www.site.com/clientX/application.pl > > So the users of "clientA" log in to > http://www.site.com/clientA/application.pl and are authenticated with > Apache2::AuthCookieDBI > > Now the directories clientA, clientB, etc. do not exist, I'm using > mod_rewrite to sort that out, and here starts my problems. First I'm > lost with authenticating since there's no "real" resource to > authenticate against, but I seem to have solved that by forcing > authentication against all *.pl files which luckily do exist ;) > > It gets more complicated later because some URLs like > http://www.site.com/clientA/iCal can't use session cookies but have to > use BASIC AUTH, and other *.pl files can't have any authentication > applied against them. > > I thought I could solve this by writing a MyAuthCookieDBI.pm but this > also isn't working out. For example MyAuthCookieDBI is an almost-empty > child. The parent (Apache2::AuthCookieDBI) has a function > _dbi_connect() which manages all the database connecting, but I can't > overwrite that function, even if MyAuthCookieDBI is the calling object > the function from Apache2::AuthCookieDBI always gets called rather than > the overridden function in my object. > > That's kind of the tip of things, basically I'm realizing that I need > professional help with this task before I end up requiring professional > help for my nerves! > > So if anyone can help with this then please contact me offlist with terms. > > Thanks! > > Tosh > -- Register for your free "Debt reduction Calculator" Update your WILL with Heritage Living Trusts ===== THE INFORMATION CONTAINED IN THIS ELECTRONIC MAIL MESSAGE IS PRIVILEGED AND CONFIDENTIAL. THIS MESSAGE IS INTENDED ONLY FOR THE USE OF THE PERSON OR ENTITY TO WHOM IT IS ADDRESSED ABOVE. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is prohibited. If you have received this communication in error, please notify me immediately by reply email, permanently delete the original and any copy of this email from your system and destroy any printout thereof. =====