Commit 3db9bec5 authored by Yadd's avatar Yadd
Browse files

Move UA to macro (partial revert r6447) [#1044]

parent 28994697
......@@ -102,9 +102,7 @@
"Auth-User" : "$uid"
}
},
"exportedVars" : {
"UA" : "HTTP_USER_AGENT"
},
"exportedVars" : {},
"globalStorage" : "Apache::Session::File",
"globalStorageOptions" : {
"Directory" : "__SESSIONDIR__",
......@@ -138,6 +136,7 @@
},
"loginHistoryEnabled" : 1,
"macros" : {
"UA" : "HTTP_USER_AGENT",
"_whatToTrace" : "$_auth eq 'SAML' ? \"$_user\\@$_idpConfKey\" : $_auth eq 'OpenIDConnect' ? \"$_user\\@$_oidcConnectedRP\" : \"$_user\""
},
"mailUrl" : "http://auth.__DNSDOMAIN__/resetpwd",
......
......@@ -108,7 +108,8 @@ sub zeroConf {
},
'macros' => {
'_whatToTrace' =>
'$_auth eq \'SAML\' ? "$_user\\@$_idpConfKey" : $_auth eq \'OpenIDConnect\' ? "$_user\\@$_oidcConnectedRP" : "$_user"'
'$_auth eq \'SAML\' ? "$_user\\@$_idpConfKey" : $_auth eq \'OpenIDConnect\' ? "$_user\\@$_oidcConnectedRP" : "$_user"',
'UA' => 'HTTP_USER_AGENT'
},
'notificationStorageOptions' => {
'dirName' => $notificationDir
......@@ -167,9 +168,7 @@ sub zeroConf {
'cookieName' => 'lemonldap',
'cfgAuthor' => 'The LemonLDAP::NG team',
'cfgVersion' => $VERSION,
'exportedVars' => {
'UA' => 'HTTP_USER_AGENT'
},
'exportedVars' => {},
'portalSkin' => 'bootstrap',
'portalSkinBackground' =>
'1280px-Cedar_Breaks_National_Monument_partially.jpg',
......
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