[snip]
Despite not having a location tag anywhere, nor a require valid-user directive, the above code
is able to accomplish my objective: loading an AccessHandler on the fly from the TransHandler for specific urls on my site. Although, I must admit that I'm not sure why it is working. _check_access is within the same TransHandler module
so my assumption is that the reference to this sub gets executed immediately and the result (OK DONE or DECLINED) gets shoved into the set_handlers('PerlAccessHandler' => 'result gets shoved here') and then my stacked TransHandler proceeds to the next module (Apache::Control_admin).

Any explanation of why this actually works would be appreciated.
the PerlAccessHandler runs whether or not there is a Requires directive configured - its the PerlAuthenHandler and PerlAuthzHandler that will not. I had assumed that since you wanted $r->requires that you were talking about a PerlAuth*Handlers, which is the proper place to check for username/password match and/or other user criteria.

HTH

--Geoff



Reply via email to