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é.