summaryrefslogtreecommitdiffstats
path: root/database/sqlite/sql-schema-delta-2.sql
diff options
context:
space:
mode:
authorDavid Sommerseth <dazo@users.sourceforge.net>2013-03-03 01:06:00 +0100
committerDavid Sommerseth <dazo@users.sourceforge.net>2013-03-03 15:37:22 +0100
commit8da942bbd9c7f75d865137822552e9c2f7640325 (patch)
treec5df77eae29211106e40fb18af5dc4bce0131140 /database/sqlite/sql-schema-delta-2.sql
parent277f2b549666be424eb5bd6f560e7f50da98d979 (diff)
downloadeurephia-8da942bbd9c7f75d865137822552e9c2f7640325.tar.gz
eurephia-8da942bbd9c7f75d865137822552e9c2f7640325.tar.xz
eurephia-8da942bbd9c7f75d865137822552e9c2f7640325.zip
sqlite: Implemented needed functions to enable authentication plug-ins
This adds the needed functions the eurephia framework requires to retrieve a list of all configured plug-ins - eDBget_plugins(). And it includes eDBauth_GetAuthMethod() which is used to lookup what kind of authentication method a specific user account/certificate combination should use. If the authentication backend requires a different username for this, that can also be configured in this user account/certification setup. Signed-off-by: David Sommerseth <dazo@users.sourceforge.net>
Diffstat (limited to 'database/sqlite/sql-schema-delta-2.sql')
-rw-r--r--database/sqlite/sql-schema-delta-2.sql37
1 files changed, 37 insertions, 0 deletions
diff --git a/database/sqlite/sql-schema-delta-2.sql b/database/sqlite/sql-schema-delta-2.sql
new file mode 100644
index 0000000..f767a5d
--- /dev/null
+++ b/database/sqlite/sql-schema-delta-2.sql
@@ -0,0 +1,37 @@
+--
+-- eurephia database schema for SQLite3
+--
+-- This SQL scripts updates the previous SQL schema to the
+-- new schema needed by edb-sqlite v1.4
+--
+-- GPLv2 only - Copyright (C) 2013
+-- David Sommerseth <dazo@users.sourceforge.net>
+--
+-- This program is free software; you can redistribute it and/or
+-- modify it under the terms of the GNU General Public License
+-- as published by the Free Software Foundation; version 2
+-- of the License.
+--
+-- This program is distributed in the hope that it will be useful,
+-- but WITHOUT ANY WARRANTY; without even the implied warranty of
+-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+-- GNU General Public License for more details.
+--
+-- You should have received a copy of the GNU General Public License
+-- along with this program; if not, write to the Free Software
+-- Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+--
+
+-- eurephia_plugins - Defines loadable eurephia plug-ins
+-- This table is parsed upon start-up of OpenVPN/eurephia
+CREATE TABLE eurephia_plugins (
+ plgname varchar(32) NOT NULL, -- short name of the plug-in module
+ plgtype varchar(16) NOT NULL, -- plug-in type (auth, firewall, etc)
+ plgdsofile text NOT NULL, -- full path to the plug-in DSO file
+ plgenabled boolean NOT NULL, -- Enable/disable the plug-in
+ plgid integer PRIMARY KEY AUTOINCREMENT
+);
+CREATE INDEX eurephia_plugins_name_type ON eurephia_plugins (plgname, plgtype);
+
+ALTER TABLE openvpn_usercerts ADD COLUMN authplugin integer;
+ALTER TABLE openvpn_usercerts ADD COLUMN authusername text;