[prev in list] [next in list] [prev in thread] [next in thread] 

List:       apache-modperl
Subject:    Re: Problem with Apache2::AuthCookie and Apache 2.4: "failed to resolve handler"
From:       André_Warnier <aw () ice-sa ! com>
Date:       2014-06-25 15:31:51
Message-ID: 53AAEB67.9020406 () ice-sa ! com
[Download RAW message or body]

Brian Candler wrote:
> OK I have it. The Debian-supplied version of Apache2::AuthCookie *does* 
> have the patches from the httpd24 branch of authcookie, and the 
> documentation for how to use it is in 
> /usr/share/doc/libapache2-authcookie-perl/README.apache-2.4

Very useful information, thanks for sharing it.

> 
> My testsite can be made to work like this:
> 
> --- testsite.conf.orig    2014-06-25 14:16:51.365038932 +0100
> +++ testsite.conf    2014-06-25 14:20:29.974486565 +0100
> @@ -3,6 +3,7 @@
>  PerlModule Example::AuthHandler
>  PerlSetVar TestAuthPath /testsite
>  PerlSetVar TestAuthLoginScript /testsite/login.html
> +PerlAddAuthzProvider user Example::AuthHandler->authz_handler
> 
>  <Location /testsite/>
>    ### To recognize logged-in users even outside of protected area:
> @@ -16,7 +17,6 @@
>    AuthType Example::AuthHandler
>    AuthName TestAuth
>    PerlAuthenHandler Example::AuthHandler->authenticate
> -  PerlAuthzHandler Example::AuthHandler->authorize
>    Require valid-user
>  </Location>
> 
> Unfortunately I'm now battling with Apache2::SiteControl, but that's a 
> different ball game.
> 
> Sorry for the noise, but hopefully somebody finds this useful.

Extremely.  I created a very specifc Auth/Authz module for Apache2.0/2.2, on the base of 
copying Apache2::AuthCookie instead of subclassing it (bad me, but the changes were so 
extensive that I was kinda forced to).  Your commented struggles - and their eventual 
solution - will definetely help me when the time comes to update this for 2.4.

Thanks for sharing.
André.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic