Bug#857327: libapache2-authenntlm-perl: does not work with Apache 2.4

gregor herrmann gregoa at debian.org
Fri Mar 10 15:46:18 UTC 2017


Control: severity -1 serious

On Fri, 10 Mar 2017 15:03:02 +1100, Hamish Moffatt wrote:

> Package: libapache2-authenntlm-perl
> Version: 0.02-7+b1
> Severity: important
> 
> I've configured this module as per http://search.cpan.org/~speeves/Apache2-AuthenNTLM-0.02/AuthenNTLM.pm
> 
> However when used it emits the following errors:
> 
> [Fri Mar 10 14:46:50.659689 2017] [perl:error] [pid 15491] [client 192.168.42.2:40383] Can't locate object method "remote_addr" via package "Apache2::Connection" at /usr/lib/i386-linux-gnu/perl5/5.20/Apache2/AuthenNTLM.pm line 504.\n
> 
> A quick Google suggests this is because it is using Apache pre-2.4 API.
> 
> I've marked this important as the package appears to be completely unusable currently.

Thanks for this bug report.

I'm setting the severity to serious, since this seems to make the
package useless.

The same bug is filed in Ubuntu's Launchpad:
https://bugs.launchpad.net/ubuntu/+source/libapache2-authenntlm-perl/+bug/1408269

Also interesting:
http://blog.branix.net/snippets/can-t-locate-object-method-remote_ip-via-package-apache2-connection
https://httpd.apache.org/docs/2.4/developer/new_api_2_4.html

From reading the above URLs, it seems that
    remote_addr -> client_addr
    remote_ip -> client_ip
should do the trick.

Could you maybe try this proposed fix?
If it works, we can prepare an updated package for stretch.


Cheers,
gregor

-- 
 .''`.  https://info.comodo.priv.at/ - Debian Developer https://www.debian.org
 : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D  85FA BB3A 6801 8649 AA06
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: Element of Crime: Finger weg von meiner Paranoia
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20170310/8b105241/attachment.sig>


More information about the pkg-perl-maintainers mailing list