From 25bad8d37eab41b3db605b53899e5c587ba31165 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Sun, 25 Jan 2009 22:13:40 +0000 Subject: [PATCH] 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 --- docs/manual/mod/mod_authn_core.html.en | 35 ++++++++++++++++++++++++-- docs/manual/mod/mod_authn_core.xml | 35 ++++++++++++++++++++++++-- 2 files changed, 66 insertions(+), 4 deletions(-) diff --git a/docs/manual/mod/mod_authn_core.html.en b/docs/manual/mod/mod_authn_core.html.en index f98dbd3fbd..755b9dc96a 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 88d9c5da5e..fd3284cdc6 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
-- 2.40.0