From: Rich Bowen Date: Sun, 25 Jan 2009 22:16:42 +0000 (+0000) Subject: Adds a mod_authn_file example to the AuthProviderAlias docs, since more X-Git-Tag: 2.2.12~249 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9e2e9a6c3564ad4370bb35d9771a5a2c8cf74d05;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/branches/2.2.x@737589 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mod/mod_authn_alias.html.en b/docs/manual/mod/mod_authn_alias.html.en index 7ebd31db8e0..5a0d9ce3415 100644 --- a/docs/manual/mod/mod_authn_alias.html.en +++ b/docs/manual/mod/mod_authn_alias.html.en @@ -48,17 +48,48 @@

Topics

top
-

Example

-

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:

+

Examples

-

Example

+

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:

+ +

Checking multiple LDAP servers

LoadModule authn_alias_module modules/mod_authn_alias.so

<AuthnProviderAlias ldap ldap-alias1>
@@ -116,6 +147,6 @@ the specified alias

Available Languages:  en 

\ No newline at end of file diff --git a/docs/manual/mod/mod_authn_alias.xml b/docs/manual/mod/mod_authn_alias.xml index 3d22348514b..fe1919213d7 100644 --- a/docs/manual/mod/mod_authn_alias.xml +++ b/docs/manual/mod/mod_authn_alias.xml @@ -43,13 +43,44 @@ -
Example -

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:

+
Examples - Example +

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:

+ + Checking multiple LDAP servers LoadModule authn_alias_module modules/mod_authn_alias.so

<AuthnProviderAlias ldap ldap-alias1>