diff options
author | André Malo <nd@apache.org> | 2006-02-17 17:39:47 +0000 |
---|---|---|
committer | André Malo <nd@apache.org> | 2006-02-17 17:39:47 +0000 |
commit | f9fba91054b347854c0da3eb7ba3d6fc668284ca (patch) | |
tree | c74df2c90bad7d3a4772027bed7d09e988309ff4 /docs/manual/howto | |
parent | 20cf15d539a5f5244b6225aae3ec59fb99cfa59b (diff) | |
download | httpd-f9fba91054b347854c0da3eb7ba3d6fc668284ca.tar.gz |
don't use 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.xml | 62 |
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 /> - ((Group == "admin") && (ldap-group <ldap-object> contains auth'ed_user) &&<br /> - ((ldap-attribute dept == "sales") || - (file-group contains contains auth'ed_user))))<br /> - then<br /> - auth_granted<br /> - else<br /> - auth_denied<br /> - </var></p> - <example> - <Directory /www/mydocs><br /> - Authname ...<br /> - AuthBasicProvider ...<br /> - ...<br /> - Require user John<br /> - <SatisfyAll><br /> - Require Group admins<br /> - Require ldap-group cn=mygroup,o=foo<br /> - <SatisfyOne><br /> - Require ldap-attribute dept="sales"<br /> - Require file-group<br /> - </SatisfyOne><br /> - </SatisfyAll><br /> - </Directory><br /> + # if ((user == "John") ||<br /> + # ((Group == "admin")<br /> + # && (ldap-group <ldap-object> contains auth'ed_user)<br /> + # && ((ldap-attribute dept == "sales")<br /> + # || (file-group contains auth'ed_user))))<br /> + # then<br /> + # auth_granted<br /> + # else<br /> + # auth_denied<br /> + #<br /> + <Directory /www/mydocs><br /> + <indent> + Authname ...<br /> + AuthBasicProvider ...<br /> + ...<br /> + Require user John<br /> + <SatisfyAll><br /> + <indent> + Require Group admins<br /> + Require ldap-group cn=mygroup,o=foo<br /> + <SatisfyOne><br /> + <indent> + Require ldap-attribute dept="sales"<br /> + Require file-group<br /> + </indent> + </SatisfyOne><br /> + </indent> + </SatisfyAll><br /> + </indent> + </Directory> </example> <p>By default all <directive module="mod_authz_core">Require</directive> @@ -562,9 +567,10 @@ person in</title> <example> <SatisfyAll><br /> - Reject ip <var>192.101.205</var><br /> - Reject host <var>cyberthugs.com</var> <var>moreidiots.com</var><br /> - 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> </SatisfyAll> </example> |