From 60deaa19570801e898d39dd5d1de03ebca67d3da Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 30 Jul 2014 12:16:33 +0200 Subject: [PATCH] Create LL::NG conf for phplist --- .../var/lib/lemonldap-ng/conf/lmConf/065phplist | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 root/etc/e-smith/templates/var/lib/lemonldap-ng/conf/lmConf/065phplist diff --git a/root/etc/e-smith/templates/var/lib/lemonldap-ng/conf/lmConf/065phplist b/root/etc/e-smith/templates/var/lib/lemonldap-ng/conf/lmConf/065phplist new file mode 100644 index 0000000..726b002 --- /dev/null +++ b/root/etc/e-smith/templates/var/lib/lemonldap-ng/conf/lmConf/065phplist @@ -0,0 +1,29 @@ +{ + +$conf->{'exportedHeaders'}->{"news.$domain"} = { + 'User-Name' => '$cn', + 'Auth-User' => '$uid', + 'User-Mail' => '$mail' +} unless ($conf->{'exportedHeaders'}->{"news.$domain"}); + + +$conf->{'locationRules'}->{"news.$domain"} = { + '(?#10admin)^/admin' => 'accept', + 'default' => 'unprotect' +} unless ($conf->{'locationRules'}->{"news.$domain"}); + + +$conf->{'applicationList'}->{'010apps'}->{'phplist'} = { + 'options' => { + 'logo' => 'phplist.png', + 'name' => 'Listes de diffusion', + 'description' => 'PHPList', + 'uri' => "https://news.$domain", + 'display' => 'auto' + }, + 'type' => 'application' +} unless ($conf->{'applicationList'}->{'010apps'}->{'phplist'}); + +$OUT = ''; + +}