summaryrefslogtreecommitdiffstats
path: root/sandbox/sebastien/cpp/apr-2/modules/http/open-auth-conf
diff options
context:
space:
mode:
authorjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-12-25 23:48:25 +0000
committerjsdelfino <jsdelfino@13f79535-47bb-0310-9956-ffa450edef68>2010-12-25 23:48:25 +0000
commit1d671d8dac57527d3e2af332128c5fd7198dd14f (patch)
tree4acd1e059abf84673cedc52542889c482eb875d9 /sandbox/sebastien/cpp/apr-2/modules/http/open-auth-conf
parent39412520173be7b17b1dcbbef510f78a5ded880d (diff)
Port to HTTPD 2.3.10 + latest APR 1.4.x and enable mod_session_crypto.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1052818 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sandbox/sebastien/cpp/apr-2/modules/http/open-auth-conf')
-rwxr-xr-xsandbox/sebastien/cpp/apr-2/modules/http/open-auth-conf8
1 files changed, 5 insertions, 3 deletions
diff --git a/sandbox/sebastien/cpp/apr-2/modules/http/open-auth-conf b/sandbox/sebastien/cpp/apr-2/modules/http/open-auth-conf
index 2bd5bc3504..46fc5f88df 100755
--- a/sandbox/sebastien/cpp/apr-2/modules/http/open-auth-conf
+++ b/sandbox/sebastien/cpp/apr-2/modules/http/open-auth-conf
@@ -25,6 +25,8 @@ root=`readlink -f $1`
conf=`cat $root/conf/httpd.conf | grep "# Generated by: httpd-conf"`
host=`echo $conf | awk '{ print $6 }'`
+pw=`cat $root/cert/ca.key | head -2 | tail -1`
+
# Generate form authentication configuration
cat >>$root/conf/auth.conf <<EOF
# Generated by: open-auth-conf $*
@@ -32,6 +34,9 @@ cat >>$root/conf/auth.conf <<EOF
<Location />
AuthType Open
AuthName "$host"
+Session On
+SessionCookieName TuscanyOpenAuth path=/;secure=TRUE
+SessionCryptoPassphrase $pw
AuthOpenAuth On
AuthOpenAuthLoginPage /login
Require valid-user
@@ -44,9 +49,6 @@ AuthName "$host"
AuthFormProvider file
AuthFormLoginRequiredLocation /login
AuthFormLogoutLocation /
-Session On
-SessionCookieName TuscanyOpenAuth path=/;secure=TRUE
-#SessionCryptoPassphrase secret
Require valid-user
SetHandler form-login-handler
</Location>