Bug 76771

Summary: AuthDBI fails with Apache 2
Product: [Retired] Red Hat Linux Reporter: Need Real Name <sheridan3003>
Component: mod_perlAssignee: Gary Benson <gbenson>
Status: CLOSED NOTABUG QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 8.0Keywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2002-11-06 13:31:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

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:
Always

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

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 

appears

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 : 
http://www.gossamer-threads.com/archive/mod_perl_C1/dev_F4/Re:_Help_with_Basic_Auth_mod_perl2_P35079

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

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.