<-
2.1 Authentication Project > Documentation

Apache Module mod_authn_cache

Available Languages:  en 

Description:User authentication Caching
Status:External
Module Identifier:authn_cache
Source File:mod_authn_cache.c
Compatibility:Apache 2.1 or greater

Summary

The module mod_authn_cache caches authentication information generated from other modules

Directives

Topics

top

Compilation

mod_authn_cache uses the "configure/make/make install" mechanism common to many Open Source programs. Most of the dirty work is handled by either configure or Apache's apxs utility. If you have built apache modules before, there shouldn't be any surprises for you.

Before you can begin compiling mod_authn_cache, you will need a working installation of Apache 2.1-dev (any earlier version, including Apache 2.0.x will NOT work).

The interesting options you can pass to configure are:

Call configure with your site-specific values and then "make" and "make install" as usual. The module will be installed in the module directory of your Apache installation.

top

Integration into Apache

Again mod_authn_cache behave like your average next-door Apache module. Just add

LoadModule authn_cache_module modules/mod_authn_cache.so

to your httpd.conf as usual and restart Apache.

top

Basic configuration of mod_authn_cache

Draft...

Example Config

       <Location /secure-area>
         AuthType Basic
         AuthName  "basic authn_cache testing area"
         AuthBasicProvider cache
         AuthnCacheProvider file
         AuthnCacheType shmht:logs/authn_cache.shm(10000)
         AuthUserFile .htpasswd
         Require valid-user
       </Location>
      

top

AuthnCacheProvider Directive

Description:Name of the Authentication Provider
Syntax:AuthnCacheProvider AuthnProvider
Default:none
Context:.htaccess
Status:External
Module:mod_authn_cache

top

AuthnCacheType Directive

Description:Type of Global Cache
Syntax:AuthnCacheType shmht:file(size)
Default:none
Context:.htaccess
Status:External
Module:mod_authn_cache

Available Languages:  en