From 62d5e37461b84c52c6b40ea681bad90d375722b8 Mon Sep 17 00:00:00 2001 From: jsdelfino Date: Fri, 3 Sep 2010 06:24:23 +0000 Subject: Configure mod-auth-openid to use memcached instead of sqlite. Remove dependencies on sqlite. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@992219 13f79535-47bb-0310-9956-ffa450edef68 --- sca-cpp/trunk/components/cache/memcache.hpp | 4 +-- sca-cpp/trunk/modules/openid/Makefile.am | 2 +- sca-cpp/trunk/modules/openid/openid-memcached-conf | 32 ++++++++++++++++++++++ sca-cpp/trunk/modules/openid/start-test | 7 +++++ sca-cpp/trunk/modules/openid/stop-test | 2 ++ sca-cpp/trunk/samples/store-cluster/proxy-conf | 2 ++ sca-cpp/trunk/samples/store-cluster/proxy-ssl-conf | 2 ++ sca-cpp/trunk/samples/store-cluster/server-conf | 2 ++ .../trunk/samples/store-cluster/server-ssl-conf | 8 ++++++ .../trunk/samples/store-cluster/sqldb-master-conf | 2 ++ .../trunk/samples/store-cluster/sqldb-standby-conf | 2 ++ .../trunk/samples/store-cluster/tunnel-ssl-conf | 2 ++ sca-cpp/trunk/ubuntu/ubuntu-bin-all-image | 2 +- sca-cpp/trunk/ubuntu/ubuntu-install-all | 2 +- 14 files changed, 65 insertions(+), 6 deletions(-) create mode 100755 sca-cpp/trunk/modules/openid/openid-memcached-conf (limited to 'sca-cpp/trunk') diff --git a/sca-cpp/trunk/components/cache/memcache.hpp b/sca-cpp/trunk/components/cache/memcache.hpp index 1c71b220c7..a76af6b662 100644 --- a/sca-cpp/trunk/components/cache/memcache.hpp +++ b/sca-cpp/trunk/components/cache/memcache.hpp @@ -63,9 +63,7 @@ public: addServers(servers); } - MemCached(const MemCached& c) : owner(false) { - pool = c.pool; - mc = c.mc; + MemCached(const MemCached& c) : owner(false), pool(c.pool), mc(c.mc) { } ~MemCached() { diff --git a/sca-cpp/trunk/modules/openid/Makefile.am b/sca-cpp/trunk/modules/openid/Makefile.am index 158dd8902b..a613f2ef78 100644 --- a/sca-cpp/trunk/modules/openid/Makefile.am +++ b/sca-cpp/trunk/modules/openid/Makefile.am @@ -18,7 +18,7 @@ if WANT_OPENID -dist_mod_SCRIPTS = openid-conf openid-step2-conf +dist_mod_SCRIPTS = openid-conf openid-step2-conf openid-memcached-conf moddir = $(prefix)/modules/openid mod_DATA = openid.prefix diff --git a/sca-cpp/trunk/modules/openid/openid-memcached-conf b/sca-cpp/trunk/modules/openid/openid-memcached-conf new file mode 100755 index 0000000000..1dfbd3b502 --- /dev/null +++ b/sca-cpp/trunk/modules/openid/openid-memcached-conf @@ -0,0 +1,32 @@ +#!/bin/sh + +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +here=`readlink -f $0`; here=`dirname $here` +mkdir -p $1 +root=`readlink -f $1` +host=$2 +port=$3 + +# Configure HTTPD mod_auth_openid module cache +cat >>$root/conf/httpd.conf <>tmp/conf/httpd.conf <>$root/conf/httpd.conf <