Commit b76db500 authored by Christophe Maudoux's avatar Christophe Maudoux

Update zeroConf

parent 8144ef91
...@@ -86,7 +86,7 @@ ...@@ -86,7 +86,7 @@
"authentication" : "Demo", "authentication" : "Demo",
"cfgAuthor" : "The LemonLDAP::NG team", "cfgAuthor" : "The LemonLDAP::NG team",
"cfgNum" : 1, "cfgNum" : 1,
"cfgVersion" : "2.0.2", "cfgVersion" : "2.0.3",
"cookieName" : "lemonldap", "cookieName" : "lemonldap",
"demoExportedVars" : { "demoExportedVars" : {
"cn" : "cn", "cn" : "cn",
...@@ -119,8 +119,13 @@ ...@@ -119,8 +119,13 @@
"namespace" : "lemonldap-ng-sessions" "namespace" : "lemonldap-ng-sessions"
}, },
"locationRules" : { "locationRules" : {
"auth.__DNSDOMAIN__" : {
"(?#checkUser)^/checkuser" : "$uid eq \"dwho\"",
"(?#errors)^/lmerror/" : "accept",
"default" : "accept"
},
"manager.__DNSDOMAIN__" : { "manager.__DNSDOMAIN__" : {
"(?#Configuration)^/(manager\\.html|conf/)" : "$uid eq \"dwho\"", "(?#Configuration)^/(manager\\.html|$)" : "$uid eq \"dwho\"",
"(?#Notifications)/notifications" : "$uid eq \"dwho\" or $uid eq \"rtyler\"", "(?#Notifications)/notifications" : "$uid eq \"dwho\" or $uid eq \"rtyler\"",
"(?#Sessions)/sessions" : "$uid eq \"dwho\" or $uid eq \"rtyler\"", "(?#Sessions)/sessions" : "$uid eq \"dwho\" or $uid eq \"rtyler\"",
"default" : "$uid eq \"dwho\" or $uid eq \"rtyler\"" "default" : "$uid eq \"dwho\" or $uid eq \"rtyler\""
......
package Lemonldap::NG::Manager::Conf::Zero; package Lemonldap::NG::Manager::Conf::Zero;
our $VERSION = '2.0.2'; our $VERSION = '2.0.3';
sub zeroConf { sub zeroConf {
my ( $domain, $sessionDir, $persistentSessionDir, $notificationDir ) = @_; my ( $domain, $sessionDir, $persistentSessionDir, $notificationDir ) = @_;
...@@ -147,6 +147,11 @@ sub zeroConf { ...@@ -147,6 +147,11 @@ sub zeroConf {
'portal' => "http://auth.$domain/", 'portal' => "http://auth.$domain/",
'notificationStorage' => 'File', 'notificationStorage' => 'File',
'locationRules' => { 'locationRules' => {
"auth.$domain" => {
'(?#checkUser)^/checkuser' => '$uid eq "dwho"',
'(?#errors)^/lmerror/' => 'accept',
'default' => 'accept'
},
"test1.$domain" => { "test1.$domain" => {
'default' => 'accept', 'default' => 'accept',
'^/logout' => 'logout_sso' '^/logout' => 'logout_sso'
...@@ -157,7 +162,7 @@ sub zeroConf { ...@@ -157,7 +162,7 @@ sub zeroConf {
}, },
"manager.$domain" => { "manager.$domain" => {
'default' => '$uid eq "dwho" or $uid eq "rtyler"', 'default' => '$uid eq "dwho" or $uid eq "rtyler"',
'(?#Configuration)^/(manager\.html|conf/)' => '$uid eq "dwho"', '(?#Configuration)^/(manager\.html|$)' => '$uid eq "dwho"',
'(?#Sessions)/sessions' => '$uid eq "dwho" or $uid eq "rtyler"', '(?#Sessions)/sessions' => '$uid eq "dwho" or $uid eq "rtyler"',
'(?#Notifications)/notifications' => '(?#Notifications)/notifications' =>
'$uid eq "dwho" or $uid eq "rtyler"', '$uid eq "dwho" or $uid eq "rtyler"',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment