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

environments/ppa-mbqj77/deployments/1
Xavier Guimard 8 years ago
parent 2899469703
commit 3db9bec588
  1. 5
      _example/conf/lmConf-1.json
  2. 2
      e2e-tests/manager/06-form.js
  3. 2
      e2e-tests/manager/36-diff.js
  4. 2
      e2e-tests/manager/40-sessions.js
  5. 9
      lemonldap-ng-manager/lib/Lemonldap/NG/Manager/Conf/Zero.pm

@ -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",

@ -17,4 +17,4 @@ describe('Lemonldap::NG Manager', function() {
expect(skinChoice.count()).toEqual(1);
});
});
});
});

@ -17,4 +17,4 @@ describe('Lemonldap::NG Manager', function() {
});
});
});
});

@ -50,4 +50,4 @@ describe('Lemonldap::NG Session explorer', function() {
expect(t.count()).toBeGreaterThan(0);
});
});
});

@ -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,10 +168,8 @@ sub zeroConf {
'cookieName' => 'lemonldap',
'cfgAuthor' => 'The LemonLDAP::NG team',
'cfgVersion' => $VERSION,
'exportedVars' => {
'UA' => 'HTTP_USER_AGENT'
},
'portalSkin' => 'bootstrap',
'exportedVars' => {},
'portalSkin' => 'bootstrap',
'portalSkinBackground' =>
'1280px-Cedar_Breaks_National_Monument_partially.jpg',
'mailUrl' => "http://auth.$domain/resetpwd",

Loading…
Cancel
Save