From 1329f0720b750badd70a744d6dbf40b11115b5bc Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Fri, 17 May 2013 11:08:58 +0200 Subject: [PATCH] update dokuwiki login regex to support pretty URL --- .../e-smith/templates/var/lib/lemonldap-ng/conf/lmConf/050dokuwiki | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/root/etc/e-smith/templates/var/lib/lemonldap-ng/conf/lmConf/050dokuwiki b/root/etc/e-smith/templates/var/lib/lemonldap-ng/conf/lmConf/050dokuwiki index 201961e..69fa21f 100644 --- a/root/etc/e-smith/templates/var/lib/lemonldap-ng/conf/lmConf/050dokuwiki +++ b/root/etc/e-smith/templates/var/lib/lemonldap-ng/conf/lmConf/050dokuwiki @@ -9,10 +9,10 @@ $conf->{'exportedHeaders'}->{"wiki.$domain"} = { $conf->{'locationRules'}->{"wiki.$domain"} = { - '(?#02login)^/doku.php(/start)?\\?(.*)do=login' => '$groups =~ /\\b(equipe|admins)\\b/', + '(?#02login)^/doku\\.php(/start)?(\\?|/)(.*)do=login' => '$groups =~ /\\b(equipe|admins)\\b/', 'default' => 'unprotect', '(?#01data)^/data(.*)' => 'deny', - '(?#10logout)^/doku.php(/start)?\\?(.*)do=logout' => 'logout_app' + '(?#10logout)^/doku\\.php(/start)?\\?(.*)do=logout' => 'logout_app' } unless ($conf->{'locationRules'}->{"wiki.$domain"});