Authentication fails after upgrade 12.04 to 14.04

Bug #1408269 reported by Manel Clos
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libapache2-authenntlm-perl (Debian)
Fix Released
Unknown
libapache2-authenntlm-perl (Ubuntu)
New
Undecided
Unassigned

Bug Description

Apache error log shows:

Can't locate object method "remote_addr" via package "Apache2::Connection" at /usr/lib/perl5/Apache2/AuthenNTLM.pm line 504

Default install of 14.04 + apt-get update && apt-get upgrade also fails.

Installed packages for default test install:
apache2
libapache2-mod-php5
libapache2-authenntlm-perl

On virtualhost:
<Location /ntlm>
   PerlAuthenHandler Apache2::AuthenNTLM
   AuthType ntlm
   AuthName NTAuth
   require valid-user
   PerlAddVar ntdomain "!!DOMAIN NAME!! !!LOGON SERVER!!"
   PerlSetVar defaultdomain !!DOMAIN NAME!!
   PerlSetVar ntlmsemtimeout 2
   PerlSetVar ntlmdebug 1
   PerlSetVar splitdomainprefix 1
</Location>

Revision history for this message
Manel Clos (manelclos) wrote :

I got around the problem fixing the code in /usr/lib/perl5/Apache2/AuthenNTLM.pm replacing:

remote_addr -> client_addr
remote_ip -> client_ip

as stated in the 2.4 API changes document here:

http://httpd.apache.org/docs/2.4/developer/new_api_2_4.html

Revision history for this message
Manel Clos (manelclos) wrote :

Find a working version to replace the old file here:

https://gist.github.com/manelclos/00c0c6c80fb9bc09fb21

Changed in libapache2-authenntlm-perl (Debian):
status: Unknown → New
Changed in libapache2-authenntlm-perl (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.