Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Apache2.4, mod_perl & PerlAuthzHandler

by Your Mother (Archbishop)
on Mar 14, 2016 at 13:12 UTC ( [id://1157640]=note: print w/replies, xml ) Need Help??


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

Could you show the (minimum) code for a handler that is causing the error? I don't have access to a modperl installation today but someone else might see something.

  • Comment on Re^3: Apache2.4, mod_perl & PerlAuthzHandler

Replies are listed 'Best First'.
Re^4: Apache2.4, mod_perl & PerlAuthzHandler
by IlyaS (Novice) on Mar 14, 2016 at 14:02 UTC

    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

      When in doubt, at the top of the sub:

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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1157640]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-25 20:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found