Re: $r->requires and register_auth_provider

2016-01-15 Thread Michael Schout
On 12/23/15 11:16 AM, Sergei Gerasenko wrote: > On the other hand, if you have 'require user u1 u2', then the 'requires' > argument is not an array but the string "u1 u2", which needs to be split. For what its worth, I have released AuthCookie v3.24 with a fix to the (AuthCookie) built in authz

Re: $r->requires and register_auth_provider

2015-12-27 Thread Jie Gao
* Sergei Gerasenko wrote: > Date: Wed, 23 Dec 2015 11:16:33 -0600 > From: Sergei Gerasenko > To: mod_perl list > Subject: Re: $r->requires and register_auth_provider > > I've installed and configured the AuthCookie module. I can now say with > certainty that aut

Re: $r->requires and register_auth_provider

2015-12-23 Thread Sergei Gerasenko
I've installed and configured the AuthCookie module. I can now say with certainty that authz_handler is called multiple times for each "require". So, if you say: require user u1 require user u2 The handler will be called twice. On the other hand, if you have 'require user u1 u2', then the 'requi

Re: $r->requires and register_auth_provider

2015-12-22 Thread Sergei Gerasenko
It didn’t happen that way unfortunately. The handler was called once for each require. Maybe I was doing something wrong. > On Dec 22, 2015, at 5:19 PM, André Warnier (tomcat) wrote: > > The way in which I understand the pod and the code, is that you don't have to > do anything to get the requ

Re: $r->requires and register_auth_provider

2015-12-22 Thread tomcat
The way in which I understand the pod and the code, is that you don't have to do anything to get the requires as a list/array : they just come that way. The first element of the array seems to be the "keyword" (like "user" in "Require user xxx yyy" etc.), and the following list elements are then

Re: $r->requires and register_auth_provider

2015-12-22 Thread A. Warnier
Hi Sergei. My turn to thank you for providing the information below (and also to Michael Schout of course). That will also be invaluable to me, when I get around to update my own mod_perl AAA modules. On 22.12.2015 17:57, Sergei Gerasenko wrote: Yep, I can see what I should do now. For the be

Re: $r->requires and register_auth_provider

2015-12-22 Thread Sergei Gerasenko
Yep, I can see what I should do now. For the benefit of others here are the differences: OLD STYLE = PerlAuthzHandler YOUR_MODULE->YOUR_METHOD require user fred require group fred ``` Then in your YOUR_METHOD you would do something like: my $requires = $r->requires process

Re: $r->requires and register_auth_provider

2015-12-22 Thread Sergei Gerasenko
Hi André, This is definitely going to be helpful. I was considering just accessing the raw config values, but could only find dir_config that remotely resembled what I needed. I ended up introducing a custom directive, but that's clunky in my opinion. So, Apache2::Directive is already a big improv

Re: $r->requires and register_auth_provider

2015-12-22 Thread André Warnier
Hi. I don't have anything very precise to tell you, but here is what I know : The AAA part has been significantly changed in Apache httpd 2.4, as compared to 2.2. Therefore I suspect - but I am not sure - that some corresponding changes had to be made in mod_perl, to adapt to these changes. One

$r->requires and register_auth_provider

2015-12-19 Thread Sergei Gerasenko
Hello, I’m using mod_perl-2.0.8-10 and I’ve been googling for days for this info w/o any luck. I need to access the value for the Require directive in the apache configs. I need to access that info in my authorization handler (PerlAuthzHandler). It used to be that $r->requires provided that in