From: Rich Bowen Date: Sun, 25 Jan 2009 22:13:40 +0000 (+0000) Subject: Adds a mod_authn_file example to the AuthProviderAlias docs, since more X-Git-Tag: 2.3.2~127 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=25bad8d37eab41b3db605b53899e5c587ba31165;p=thirdparty%2Fapache%2Fhttpd.git Adds a mod_authn_file example to the AuthProviderAlias docs, since more people understand mod_authn_file than understand LDAP. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@737588 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_authn_core.html.en b/docs/manual/mod/mod_authn_core.html.en index f98dbd3fbdf..755b9dc96a6 100644 --- a/docs/manual/mod/mod_authn_core.html.en +++ b/docs/manual/mod/mod_authn_core.html.en @@ -59,13 +59,44 @@ extended authentication provider to be reference by multiple locations.

-

Example

+

Examples

+ +

This example checks for passwords in two different text + files.

+ +

Checking multiple text password files

+ + # Check here first
+ <AuthnProviderAlias file file1>
+ + AuthUserFile /www/conf/passwords1
+
+ </AuthnProviderAlias>
+
+ # Then check here
+ <AuthnProviderAlias file file2>
+ + AuthUserFile /www/conf/passwords2
+
+ </AuthnProviderAlias>
+
+ <Directory /var/web/pages/secure>
+ + AuthBasicProvider file1 file2
+
+ AuthType Basic
+ AuthName "Protected Area"
+ Require valid-user
+
+ </Directory>
+

+

The example below creates two different ldap authentication provider aliases based on the ldap provider. This allows a single authenticated location to be serviced by multiple ldap hosts:

-

Example

+

Checking multiple LDAP servers

<AuthnProviderAlias ldap ldap-alias1>
AuthLDAPBindDN cn=youruser,o=ctx
diff --git a/docs/manual/mod/mod_authn_core.xml b/docs/manual/mod/mod_authn_core.xml index 88d9c5da5e7..fd3284cdc6b 100644 --- a/docs/manual/mod/mod_authn_core.xml +++ b/docs/manual/mod/mod_authn_core.xml @@ -48,13 +48,44 @@ extended authentication provider to be reference by multiple locations.

-
Example +
Examples + +

This example checks for passwords in two different text + files.

+ + Checking multiple text password files + + # Check here first
+ <AuthnProviderAlias file file1>
+ + AuthUserFile /www/conf/passwords1
+
+ </AuthnProviderAlias>
+
+ # Then check here
+ <AuthnProviderAlias file file2>
+ + AuthUserFile /www/conf/passwords2
+
+ </AuthnProviderAlias>
+
+ <Directory /var/web/pages/secure>
+ + AuthBasicProvider file1 file2
+
+ AuthType Basic
+ AuthName "Protected Area"
+ Require valid-user
+
+ </Directory>
+
+

The example below creates two different ldap authentication provider aliases based on the ldap provider. This allows a single authenticated location to be serviced by multiple ldap hosts:

- Example + Checking multiple LDAP servers <AuthnProviderAlias ldap ldap-alias1>
AuthLDAPBindDN cn=youruser,o=ctx