>When a request that requires authorization is received,
>Apache::AuthzCache looks up the REMOTE_USER in a shared-memory
>cache (using IPC::Cache) and compares the list of groups in the
>cache against the groups enumerated within the "require"
>configuration directive. If a match is found, the handler returns
>OK and clears the downstream Authz handlers from the
>stack. Otherwise, it returns DECLINED and allows the next
>PerlAuthzHandler in the chain to be called.
> 
>After the primary authorization handler completes with an OK,
>Apache::AuthzCache::manage_cache adds the new group (listed in
>REMOTE_GROUP) to the cache.
>
I would like the module to be able to cache selected environment variables
along with the user and group information.
A directive could be used to select a list of environment variables to be
cache.  For example;

AuthzCacheOption CacheEnv  REMOTE_EMAIL SPECIAL_VAL FIELD23

Then when the following authorize request are processed, these environment
variables would be set.  The down steam handlers can now access the
variables without having to go back to the original data source (which may
change).

I have done some work with AuthzDBI.pm to provide this functionality.  I
hope to work with Edmund Mergl to get it added to Apache::AuthzDBI.pm.


Reply via email to