Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 76771 - AuthDBI fails with Apache 2
Summary: AuthDBI fails with Apache 2
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: mod_perl
Version: 8.0
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Gary Benson
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2002-10-26 02:00 UTC by Need Real Name
Modified: 2007-04-18 16:47 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2002-11-06 13:31:02 UTC

Attachments (Terms of Use)

Description Need Real Name 2002-10-26 02:00:15 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20021003

Description of problem:
Can't locate object method "user" via package "Apache::Connection" at
/usr/lib/perl5/site_perl/5.8.0/Apache/AuthDBI.pm line 177

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1.use .htpasswd that acesses a mysql database for login info 

Actual Results:  When using .htpasswd with Database authentication error : 
Can't locate object method "user" via package "Apache::Connection" at
/usr/lib/perl5/site_perl/5.8.0/Apache/AuthDBI.pm line 177 


Expected Results:  This should authenticate users. 

Additional info:

When upgrading an existing Web Site to Red Hat 8.0 we ran into the following
error once we enabled authdbi : 

Can't locate object method "user" via package "Apache::Connection" at
/usr/lib/perl5/site_perl/5.8.0/Apache/AuthDBI.pm line 177

According to this URL : 

"any auth module should now be using $r->user instead of 

When I modified 
/usr/lib/perl5/site_perl/5.8.0/Apache/AuthDBI.pm from a RedHat 8.0 install and
changed the line from $r->connection->user to $r->user my authentication proces
began working again.

Comment 1 Gary Benson 2002-11-06 12:39:55 UTC
Where did /usr/lib/perl5/site_perl/5.8.0/Apache/AuthDBI.pm come from?  It's not
from mod_perl and no Red Hat package should have installed in site_perl.

Comment 2 Need Real Name 2002-11-06 13:30:55 UTC
This was a box that I cannot verify the person that installed it actually
followed the correct procedure for building a Red Hat Linux box. I am no longer
affiliated with these people so if this is not part of a standard Red Hat Linux
install this can be closed. Thanks for looking into it. 

Comment 3 Gary Benson 2002-11-06 13:57:10 UTC
Ok, closed then.

Note You need to log in before you can comment on or make changes to this bug.