Return-Path:
This simple example shows use of this module in the context of
the Authentication and DBD frameworks., for instance: ldiffs
Make some of the lines that were artifically broken > 40char.
Modified:
httpd/httpd/trunk/docs/manual/mod/mod_authn_dbd.xml
httpd/httpd/trunk/docs/manual/mod/mod_authn_socache.xml
httpd/httpd/trunk/docs/manual/mod/mod_authnz_ldap.xml
httpd/httpd/trunk/docs/manual/mod/mod_authz_dbd.xml
Modified: httpd/httpd/trunk/docs/manual/mod/mod_authn_dbd.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_authn_dbd.xml?rev=1330921&r1=1330920&r2=1330921&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/mod/mod_authn_dbd.xml (original)
+++ httpd/httpd/trunk/docs/manual/mod/mod_authn_dbd.xml Thu Apr 26 16:14:31 2012
@@ -72,7 +72,7 @@ to cache credentials and take most of th
+
%s
format specifier.
-AuthDBDUserPWQuery \ - "SELECT password FROM authn WHERE user = %s" -
The first column value of the first row returned by the query
statement should be a string containing the encrypted password.
Subsequent rows will be ignored. If no rows are returned, the user
@@ -171,10 +169,9 @@ AuthDBDUserPWQuery \
The user's ID and the realm, in that order, will be passed as string
parameters when the SQL query is executed. They may be referenced
within the query statement using %s
format specifiers.
-AuthDBDUserRealmQuery \ - "SELECT password FROM authn WHERE user = %s AND realm = %s" -
The first column value of the first row returned by the query statement should be a string containing the encrypted password. Subsequent rows will be ignored. If no rows are returned, the user Modified: httpd/httpd/trunk/docs/manual/mod/mod_authn_socache.xml URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/mod/mod_authn_socache.xml?rev=1330921&r1=1330920&r2=1330921&view=diff ============================================================================== --- httpd/httpd/trunk/docs/manual/mod/mod_authn_socache.xml (original) +++ httpd/httpd/trunk/docs/manual/mod/mod_authn_socache.xml Thu Apr 26 16:14:31 2012 @@ -69,7 +69,7 @@ the load on backends
A simple usage example to accelerate
+<Directory /usr/www/myhost/private> AuthType Basic AuthName "Cached Authentication Example" @@ -80,7 +80,7 @@ the load on backends AuthnCacheSOCache dbm Require valid-user </Directory> -
dn: cn=Administrators, o=Example objectClass: groupOfUniqueNames uniqueMember: cn=Barbara Jenson, o=Example uniqueMember: cn=Fred User, o=Example -
The following directive would grant access to both Fred and Barbara:
@@ -381,7 +381,7 @@ uniqueMember: cn=Fred User, o=Example ifdn: cn=Employees, o=Example objectClass: groupOfUniqueNames uniqueMember: cn=Managers, o=Example @@ -408,7 +408,7 @@ dn: cn=Temporary Employees, o=Example objectClass: groupOfUniqueNames uniqueMember: cn=Jim Swenson, o=Example uniqueMember: cn=Elliot Rhodes, o=Example -
The following directives would allow access for Bob Ellis, Tom Jackson,
Barbara Jensen, Fred User, Allan Jefferson, and Paul Tilley but would not
@@ -690,11 +690,11 @@ AuthLDAPURL ldap://10.0.0.1:3268/?userPr
authentication to it is a matter of adding the following
directives to every .htaccess
file
that gets created in the web
+AuthLDAPURL "the url" AuthGroupFile mygroupfile Require group mygroupfile -
+# mod_dbd configuration DBDriver pgsql DBDParams "dbname=apacheauth user=apache pass=xxxxxx" @@ -115,13 +115,11 @@ DBDExptime 300 <Files login.html> # don't require user to already be logged in! - AuthDBDUserPWQuery \ - "SELECT password FROM authn WHERE user = %s" + AuthDBDUserPWQuery "SELECT password FROM authn WHERE user = %s" # dbd-login action executes a statement to log user in Require dbd-login - AuthzDBDQuery \ - "UPDATE authn SET login = 'true' WHERE user = %s" + AuthzDBDQuery "UPDATE authn SET login = 'true' WHERE user = %s" # return user to referring page (if any) after # successful login @@ -131,11 +129,10 @@ DBDExptime 300 <Files logout.html> # dbd-logout action executes a statement to log user out Require dbd-logout - AuthzDBDQuery \ - "UPDATE authn SET login = 'false' WHERE user = %s" + AuthzDBDQuery "UPDATE authn SET login = 'false' WHERE user = %s" </Files> </Directory> -
Require dbd-login
or
@@ -168,11 +164,10 @@ AuthzDBDQuery \
but will instead execute a SQL statement designed to log the user
in or out. The user must already be authenticated with
+Require dbd-login -AuthzDBDQuery \ - "UPDATE authn SET login = 'true' WHERE user = %s" -
In all cases, the user's ID will be passed as a single string
@@ -194,8 +189,7 @@ AuthzDBDQuery \
parameter when the SQL query is executed. It may be referenced within
the query statement using a %s
format specifier.
The first column value of the first row returned by the query statement should be a string containing a URL to which to redirect