summaryrefslogtreecommitdiff
path: root/docs/manual/howto
diff options
context:
space:
mode:
authorAndré Malo <nd@apache.org>2006-02-17 17:39:47 +0000
committerAndré Malo <nd@apache.org>2006-02-17 17:39:47 +0000
commitf9fba91054b347854c0da3eb7ba3d6fc668284ca (patch)
treec74df2c90bad7d3a4772027bed7d09e988309ff4 /docs/manual/howto
parent20cf15d539a5f5244b6225aae3ec59fb99cfa59b (diff)
downloadhttpd-f9fba91054b347854c0da3eb7ba3d6fc668284ca.tar.gz
don't use &nbsp; in configuration code that might be copy and pasted and cannot
be interpreted correctly by the httpd git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@378577 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/howto')
-rw-r--r--docs/manual/howto/auth.xml62
1 files changed, 34 insertions, 28 deletions
diff --git a/docs/manual/howto/auth.xml b/docs/manual/howto/auth.xml
index 728c05812d..c19e3f8f88 100644
--- a/docs/manual/howto/auth.xml
+++ b/docs/manual/howto/auth.xml
@@ -466,32 +466,37 @@ person in</title>
access is granted. For example the following authorization block would
apply the logic:</p>
- <p><var>
- if ((user == "John") || <br />
- &nbsp;&nbsp;&nbsp;((Group == "admin") &amp;&amp; (ldap-group &lt;ldap-object&gt; contains auth'ed_user) &amp;&amp;<br />
- &nbsp;&nbsp;&nbsp;&nbsp;((ldap-attribute dept == "sales") ||
- (file-group contains contains auth'ed_user))))<br />
- then<br />
- &nbsp;&nbsp;auth_granted<br />
- else<br />
- &nbsp;&nbsp;auth_denied<br />
- </var></p>
-
<example>
- &lt;Directory /www/mydocs&gt;<br />
- &nbsp; Authname ...<br />
- &nbsp; AuthBasicProvider ...<br />
- &nbsp; ...<br />
- &nbsp; Require user John<br />
- &nbsp; &lt;SatisfyAll&gt;<br />
- &nbsp;&nbsp; Require Group admins<br />
- &nbsp;&nbsp; Require ldap-group cn=mygroup,o=foo<br />
- &nbsp;&nbsp; &lt;SatisfyOne&gt;<br />
- &nbsp;&nbsp;&nbsp; Require ldap-attribute dept="sales"<br />
- &nbsp;&nbsp;&nbsp; Require file-group<br />
- &nbsp;&nbsp; &lt;/SatisfyOne&gt;<br />
- &nbsp; &lt;/SatisfyAll&gt;<br />
- &lt;/Directory&gt;<br />
+ # if ((user == "John") ||<br />
+ # &nbsp;&nbsp; ((Group == "admin")<br />
+ # &nbsp; &nbsp; &amp;&amp; (ldap-group &lt;ldap-object&gt; contains auth'ed_user)<br />
+ # &nbsp; &nbsp; &amp;&amp; ((ldap-attribute dept == "sales")<br />
+ # &nbsp; &nbsp; &nbsp; &nbsp; || (file-group contains auth'ed_user))))<br />
+ # then<br />
+ # &nbsp; auth_granted<br />
+ # else<br />
+ # &nbsp; auth_denied<br />
+ #<br />
+ &lt;Directory /www/mydocs&gt;<br />
+ <indent>
+ Authname ...<br />
+ AuthBasicProvider ...<br />
+ ...<br />
+ Require user John<br />
+ &lt;SatisfyAll&gt;<br />
+ <indent>
+ Require Group admins<br />
+ Require ldap-group cn=mygroup,o=foo<br />
+ &lt;SatisfyOne&gt;<br />
+ <indent>
+ Require ldap-attribute dept="sales"<br />
+ Require file-group<br />
+ </indent>
+ &lt;/SatisfyOne&gt;<br />
+ </indent>
+ &lt;/SatisfyAll&gt;<br />
+ </indent>
+ &lt;/Directory&gt;
</example>
<p>By default all <directive module="mod_authz_core">Require</directive>
@@ -562,9 +567,10 @@ person in</title>
<example>
&lt;SatisfyAll&gt;<br />
- &nbsp; Reject ip <var>192.101.205</var><br />
- &nbsp; Reject host <var>cyberthugs.com</var> <var>moreidiots.com</var><br />
- &nbsp; Reject host ke<br />
+ <indent>
+ Reject ip <var>192.101.205</var><br />
+ Reject host <var>cyberthugs.com</var> <var>moreidiots.com</var><br /> Reject host ke<br />
+ </indent>
&lt;/SatisfyAll&gt;
</example>