# HG changeset patch # User Chris Cannam # Date 1501840291 -3600 # Node ID 42618fc5ab46a87f1f28587123bebb82547ee151 # Parent 7b23adecd96372fa7e23954d4917923685c74378 Fix for Apache 2.4+ diff -r 7b23adecd963 -r 42618fc5ab46 extra/soundsoftware/SoundSoftware.pm --- a/extra/soundsoftware/SoundSoftware.pm Thu Aug 03 20:51:41 2017 +0100 +++ b/extra/soundsoftware/SoundSoftware.pm Fri Aug 04 10:51:31 2017 +0100 @@ -32,7 +32,8 @@ Debian/ubuntu: apt-get install libapache-dbi-perl libapache2-mod-perl2 \ - libdbd-mysql-perl libauthen-simple-ldap-perl libio-socket-ssl-perl + libdbd-mysql-perl libdbd-pg-perl libio-socket-ssl-perl \ + libauthen-simple-ldap-perl Note that LDAP support is hardcoded "on" in this script (it is optional in the original Redmine.pm). @@ -176,6 +177,11 @@ return FORBIDDEN; } + if (!defined $r->user or $r->user eq '') { + $r->user('*anon*'); # Apache 2.4+ requires auth module to set + # user even if no auth was needed + } + my $method = $r->method; print STDERR "SoundSoftware.pm:$$: Method: $method, uri " . $r->uri . ", location " . $r->location . "\n";