From b7aefb7a8bff49e64c99446cf23db01cf282501a Mon Sep 17 00:00:00 2001 From: Philippe Caseiro Date: Tue, 27 Mar 2018 12:25:52 +0200 Subject: [PATCH] llRegisterDB variable could be disabled If you choose to remove "Registration button" from the interface llRegisterDB is disabled so it's not available for the template. --- tmpl/lmConf-1.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tmpl/lmConf-1.js b/tmpl/lmConf-1.js index 26117a5..3c5819d 100644 --- a/tmpl/lmConf-1.js +++ b/tmpl/lmConf-1.js @@ -218,10 +218,11 @@ "slaveAuthnLevel": 2, "samlIDPSSODescriptorSingleLogoutServiceHTTPPost": "urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST;#PORTAL#/saml/singleLogout;#PORTAL#/saml/singleLogoutReturn", "Soap": 1, -%if %%llRegisterDB == "Custom" +%set %%RegisterDB=%%getVar('llRegisterDB', 'Demo') +%if %%RegisterDB == "Custom" "registerDB": "Null", %else - "registerDB": "%%llRegisterDB", + "registerDB": "%%RegisterDB", %end if "locationRules": { "%%managerWebName": { @@ -402,7 +403,7 @@ "oidcOPMetaDataOptions": null, "samlSPSSODescriptorWantAssertionsSigned": 1, "samlOrganizationName": "%%samlOrganizationName", -%if %%llRegisterDB == "Custom" +%if %%RegisterDB == "Custom" "registerUrl": "%%llRegisterURL", %else "registerUrl": "https://%%authWebName/register.pl",