From dbce50ce8734bcaf5e1366136025af01a9fcfd09 Mon Sep 17 00:00:00 2001 From: Rich Bowen Date: Sat, 28 May 2016 14:40:24 +0000 Subject: [PATCH] Rebuild new working example. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1745879 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_auth_form.html.en | 44 ++++++++++++++------------ docs/manual/mod/mod_auth_form.html.fr | 2 ++ docs/manual/mod/mod_auth_form.xml | 4 +-- docs/manual/mod/mod_auth_form.xml.fr | 2 +- docs/manual/mod/mod_auth_form.xml.meta | 2 +- 5 files changed, 30 insertions(+), 24 deletions(-) diff --git a/docs/manual/mod/mod_auth_form.html.en b/docs/manual/mod/mod_auth_form.html.en index 0922e25f32..df672a6b91 100644 --- a/docs/manual/mod/mod_auth_form.html.en +++ b/docs/manual/mod/mod_auth_form.html.en @@ -109,14 +109,18 @@ a file using mod_authn_file. If authentication is unsuccessful, the user will be redirected to the form login page.

-

Basic example

AuthFormProvider file
-AuthUserFile "conf/passwd"
-AuthType form
-AuthName realm
-AuthFormLoginRequiredLocation "http://example.com/login.html"
-Session On
-SessionCookieName session path=/
-SessionCryptoPassphrase secret
+

Basic example

<Location "/admin">
+    AuthFormProvider file
+    AuthUserFile "conf/passwd"
+    AuthType form
+    AuthName "/admin"
+    AuthFormLoginRequiredLocation "http://example.com/login.html"
+
+    Session On
+    SessionCookieName session path=/
+
+    Require valid-user
+</Location>

The directive AuthType will enable @@ -125,13 +129,17 @@ SessionCryptoPassphrase secret AuthUserFile specify that usernames and passwords should be checked against the chosen file.

-

The directives Session, - SessionCookieName and - SessionCryptoPassphrase create an - encrypted session stored within an HTTP cookie on the browser. For more information +

The directives Session and + SessionCookieName + session stored within an HTTP cookie on the browser. For more information on the different options for configuring a session, read the documentation for mod_session.

+

You can optionally add a + SessionCryptoPassphrase to + create an encrypted session cookie. This required the additional + module mod_session_crypto be loaded.

+

In the simple example above, a URL has been protected by mod_auth_form, but the user has yet to be given an opportunity to enter their username and password. Options for doing so include providing a @@ -168,10 +176,9 @@ SessionCryptoPassphrase secret AuthFormProvider file AuthUserFile "conf/passwd" AuthType form - AuthName realm + AuthName /admin Session On SessionCookieName session path=/ - SessionCryptoPassphrase secret </Location>

@@ -229,8 +236,7 @@ AuthType form AuthName realm AuthFormLoginRequiredLocation "http://example.com/login.html" Session On -SessionCookieName session path=/ -SessionCryptoPassphrase secret +SessionCookieName session path=/

The error document page should contain a login form with an empty action property, @@ -316,8 +322,7 @@ SessionCryptoPassphrase secret AuthName realm AuthFormLogoutLocation "http://example.com/loggedout.html" Session On -SessionCookieName session path=/ -SessionCryptoPassphrase secret +SessionCookieName session path=/

Note that logging a user out does not delete the session; it merely removes @@ -332,8 +337,7 @@ SessionCryptoPassphrase secret AuthFormLogoutLocation "http://example.com/loggedout.html" Session On SessionMaxAge 1 -SessionCookieName session path=/ -SessionCryptoPassphrase secret +SessionCookieName session path=/

top
diff --git a/docs/manual/mod/mod_auth_form.html.fr b/docs/manual/mod/mod_auth_form.html.fr index f3b318f85d..f86a873c89 100644 --- a/docs/manual/mod/mod_auth_form.html.fr +++ b/docs/manual/mod/mod_auth_form.html.fr @@ -29,6 +29,8 @@

Langues Disponibles:  en  |  fr 

+
Cette traduction peut être périmée. Vérifiez la version + anglaise pour les changements récents.
diff --git a/docs/manual/mod/mod_auth_form.xml b/docs/manual/mod/mod_auth_form.xml index 465e73f0ed..0ee69159b6 100644 --- a/docs/manual/mod/mod_auth_form.xml +++ b/docs/manual/mod/mod_auth_form.xml @@ -75,7 +75,7 @@ Basic example - +<Location "/admin"> AuthFormProvider file AuthUserFile "conf/passwd" AuthType form @@ -86,7 +86,7 @@ SessionCookieName session path=/ Require valid-user - +</Location> diff --git a/docs/manual/mod/mod_auth_form.xml.fr b/docs/manual/mod/mod_auth_form.xml.fr index affd2f3105..1652f20296 100644 --- a/docs/manual/mod/mod_auth_form.xml.fr +++ b/docs/manual/mod/mod_auth_form.xml.fr @@ -1,7 +1,7 @@ - + diff --git a/docs/manual/mod/mod_auth_form.xml.meta b/docs/manual/mod/mod_auth_form.xml.meta index 66a7abbcd2..ff178f6df2 100644 --- a/docs/manual/mod/mod_auth_form.xml.meta +++ b/docs/manual/mod/mod_auth_form.xml.meta @@ -8,6 +8,6 @@ en - fr + fr -- 2.50.1
Description:Authentification à l'aide d'un formulaire
Statut:Base
Identificateur de Module:auth_form_module