From a0fd9e48e30f95f0bf619b5a6e8c024131a3b86e Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 30 Jul 2014 10:23:40 +0200 Subject: [PATCH] Include an auth_module to authenticate users through apache --- .../templates/etc/phplist/config.php/35Login | 3 +- .../share/phplist/www/admin/auth/external_auth.inc | 163 +++++++++++++++++++++ 2 files changed, 165 insertions(+), 1 deletion(-) create mode 100644 root/usr/share/phplist/www/admin/auth/external_auth.inc diff --git a/root/etc/e-smith/templates/etc/phplist/config.php/35Login b/root/etc/e-smith/templates/etc/phplist/config.php/35Login index 8e88b01..c12ce91 100644 --- a/root/etc/e-smith/templates/etc/phplist/config.php/35Login +++ b/root/etc/e-smith/templates/etc/phplist/config.php/35Login @@ -1,4 +1,5 @@ -$require_login = {(($phplist{'Authentication'} || 'http') eq 'internal') ? '1':'0'}; +$require_login = 1; +$admin_auth_module = {(($phplist{'Authentication'} || 'http') eq 'internal') ? 'phplist_auth.inc':'external_auth.inc'}; define("REGISTER",0); define("MANUALLY_PROCESS_QUEUE",0); define('MAILQUEUE_THROTTLE',0.5); diff --git a/root/usr/share/phplist/www/admin/auth/external_auth.inc b/root/usr/share/phplist/www/admin/auth/external_auth.inc new file mode 100644 index 0000000..15d9d3c --- /dev/null +++ b/root/usr/share/phplist/www/admin/auth/external_auth.inc @@ -0,0 +1,163 @@ +