From: Nick Kew Date: Mon, 28 Jun 2010 20:49:53 +0000 (+0000) Subject: Add usage example in docs X-Git-Tag: 2.3.7~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bc0c66683e23429385d08b61fd2c2681ed67eca0;p=apache Add usage example in docs git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@958720 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_authn_socache.xml b/docs/manual/mod/mod_authn_socache.xml index f339c51c21..882f790d2f 100644 --- a/docs/manual/mod/mod_authn_socache.xml +++ b/docs/manual/mod/mod_authn_socache.xml @@ -53,9 +53,11 @@ the load on backends or dbm (mod_authn_dbm) are unlikely to benefit, as these are fast and lightweight in their own right (though in some cases, such as a network-mounted file, cacheing may be worthwhile). - Other providers such as SQL, LDAP or Radius based authentication - are more likely to benefit, particularly where there is an observed - performance issue.

+ Other providers such as SQL or LDAP based authentication are more + likely to benefit, particularly where there is an observed + performance issue. Amongst the standard modules, mod_authnz_ldap manages its own cache, so only + mod_authn_dbd will usually benefit from this cache.

The basic rules to cache for a provider are:

  1. Include the provider you're cacheing for in an AuthnCacheProvider directive.
  2. @@ -65,7 +67,18 @@ the load on backends "mod_auth_digest">AuthDigestProvider directive.

A simple usage example to accelerate mod_authn_dbd - [TODO]

+ using dbm as a cache engine:

+
+    <Directory /usr/www/myhost/private>
+        AuthType Basic
+        AuthName "Cached Authentication Example"
+        AuthBasicProvider socache dbd
+        AuthDBDUserPWQuery "SELECT password FROM authn WHERE user = %s"
+        AuthnCacheProvider dbd
+        AuthnCacheContext dbd-authn-example
+        AuthnCacheSOCache dbm
+    </Directory>
+    
Cacheing with custom modules