]> granicus.if.org Git - apache/commitdiff
Add example use case to doc
authorDaniel Gruno <humbedooh@apache.org>
Mon, 8 Apr 2013 12:00:37 +0000 (12:00 +0000)
committerDaniel Gruno <humbedooh@apache.org>
Mon, 8 Apr 2013 12:00:37 +0000 (12:00 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1465602 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/mod/mod_authz_dbm.xml

index f9ba8828584e4e244a7f4ec33ac0ed07375ff743..5f172161a7b050bd35ea95b8480761125cdc067f 100644 (file)
 
 <seealso><directive module="mod_authz_core">Require</directive></seealso>
 
+<section id="examples">
+<title>Example usage</title>
+<p><em>Note that using mod_authz_dbm requires you to require <code>dbm-group</code> 
+instead of <code>group</code>:</em>
+</p>
+<highlight language="config">
+&lt;Directory "/foo/bar"&gt;
+  AuthType Basic 
+  AuthName "Secure Area"
+  AuthBasicProvider dbm 
+  AuthDBMUserFile site/data/users 
+  AuthDBMGroupFile site/data/users 
+  Require dbm-group admin 
+&lt;/Directory&gt;
+</highlight>
+</section>
+
 <directivesynopsis>
 <name>AuthDBMGroupFile</name>
 <description>Sets the name of the database file containing the list
@@ -118,3 +135,4 @@ store list of user groups</description>
 </directivesynopsis>
 
 </modulesynopsis>
+