]> granicus.if.org Git - apache/commitdiff
Remove a silly paragraph that recommends doing something stupid.
authorRich Bowen <rbowen@apache.org>
Sat, 17 Nov 2012 02:40:25 +0000 (02:40 +0000)
committerRich Bowen <rbowen@apache.org>
Sat, 17 Nov 2012 02:40:25 +0000 (02:40 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1410676 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/howto/auth.xml

index b893f3f05a22a66e5dbdcdc9ee40225c3da5470b..2bb76779703e4b09f4e67821998446a7f119d1c6 100644 (file)
@@ -300,8 +300,9 @@ person in</title>
     (It's the <code>-c</code> that makes it create a new password
     file).</p>
 
-    <p>Now, you need to modify your <code>.htaccess</code> file to
-    look like the following:</p>
+    <p>Now, you need to modify your <code>.htaccess</code> file or
+    <directive module="core" type="section">Directory</directive> block
+    to look like the following:</p>
 
     <highlight language="config">
 AuthType Basic
@@ -325,13 +326,7 @@ Require group GroupName
 
     <p>Using that rather than the <code>Require user rbowen</code>
     line will allow anyone in that is listed in the password file,
-    and who correctly enters their password. You can even emulate
-    the group behavior here, by just keeping a separate password
-    file for each group. The advantage of this approach is that
-    Apache only has to check one file, rather than two. The
-    disadvantage is that you have to maintain a bunch of password
-    files, and remember to reference the right one in the
-    <directive module="mod_authn_file">AuthUserFile</directive> directive.</p>
+    and who correctly enters their password.</p>
 </section>
 
 <section id="possibleproblems"><title>Possible problems</title>
@@ -370,11 +365,13 @@ Require group GroupName
 
     <highlight language="config">
 &lt;Directory /www/docs/private&gt;
+<indent>
     AuthName "Private"
     AuthType Basic
     AuthBasicProvider dbm
     AuthDBMUserFile /www/passwords/passwd.dbm
     Require valid-user
+</indent>
 &lt;/Directory&gt;
     </highlight>
 
@@ -393,12 +390,14 @@ Require group GroupName
 
     <highlight language="config">
 &lt;Directory /www/docs/private&gt;
+<indent>
     AuthName "Private"
     AuthType Basic
     AuthBasicProvider file ldap
     AuthUserFile /usr/local/apache/passwd/passwords
     AuthLDAPURL ldap://ldaphost/o=yourorg
     Require valid-user
+</indent>
 &lt;/Directory&gt;
     </highlight>
 
@@ -417,6 +416,7 @@ Require group GroupName
 
     <highlight language="config">
 &lt;Directory /www/docs/private&gt;
+<indent>
     AuthName "Private"
     AuthType Basic
     AuthBasicProvider file
@@ -425,6 +425,7 @@ Require group GroupName
     AuthGroupFile /usr/local/apache/passwd/groups
     Require group GroupName
     Require ldap-group cn=mygroup,o=yourorg
+</indent>
 &lt;/Directory&gt;
     </highlight>