in reply to Re^3: Apache2.4, mod_perl & PerlAuthzHandler
in thread Apache2.4, mod_perl & PerlAuthzHandler

So I have apache 2.4 + mod_perl 2.0.9 (latest version including Apache 2.4 support as written on site)

Apache 2.4 config (standart)

PerlAuthenHandler auth::auth->authen_handler # <-- this works fine PerlAuthzHandler auth::auth->group_handler AuthType basic AuthName 'Restricted Area Access' require group group1

module (PerlAuthzHandler) code

sub group_handler { my ($self, $r) = @_; my $requires = $r->requires; ... <so I have a list of requries, connect to my db and check if this +user may pass> }

Here
http://perl.apache.org/docs/2.0/api/Apache2/Access.html#C_requires_
described output of $r->requires

Replies are listed 'Best First'.
Re^5: Apache2.4, mod_perl & PerlAuthzHandler
by codiac (Beadle) on Mar 18, 2016 at 13:42 UTC

    When in doubt, at the top of the sub:

    use Data::Dumper; warn Dumper(@_);