From 39e5cf198584b8fc04ba8032251d28df88d2601d Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 31 Dec 2017 12:53:30 +0100 Subject: [PATCH] referential integrity --- lam/help/help.inc | 2 ++ lam/templates/config/confmain.php | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/lam/help/help.inc b/lam/help/help.inc index 078ddb74..25001c8e 100644 --- a/lam/help/help.inc +++ b/lam/help/help.inc @@ -194,6 +194,8 @@ $helpArray = array ( "Text" => _('Please select the template for the new server profile. You can either select an existing server profile or use one of the built-in templates.')), "268" => array ("Headline" => _('Display name'), "Text" => _('This name is shown on the login page as server name. Defaults to server address if empty.')), + "269" => array ("Headline" => _('Referential integrity overlay'), + "Text" => _('Activate this checkbox if you have any server side extension for referential integrity in place. LAM will then skip cleanup tasks like deletion of group memberships on account deletion.')), "270" => array ("Headline" => _('Bind user and password'), "Text" => _('Please enter the DN and password to use for all jobs.')), "271" => array ("Headline" => _('Database type'), diff --git a/lam/templates/config/confmain.php b/lam/templates/config/confmain.php index 375a68a2..a34ef26c 100644 --- a/lam/templates/config/confmain.php +++ b/lam/templates/config/confmain.php @@ -227,6 +227,9 @@ $advancedOptionsContent->add(new htmlResponsiveInputCheckbox('followReferrals', // paged results $pagedResults = ($conf->getPagedResults() === 'true'); $advancedOptionsContent->add(new htmlResponsiveInputCheckbox('pagedResults', $pagedResults , _('Paged results'), '266'), 12); +// referential integrity overlay +$referentialIntegrity = ($conf->isReferentialIntegrityOverlayActive()); +$advancedOptionsContent->add(new htmlResponsiveInputCheckbox('referentialIntegrityOverlay', $referentialIntegrity , _('Referential integrity overlay'), '269'), 12); // build advanced options box $advancedOptions = new htmlAccordion('advancedOptions_server', array(_('Advanced options') => $advancedOptionsContent), false); @@ -545,6 +548,12 @@ function checkInput() { else { $conf->setPagedResults('false'); } + if (isset($_POST['referentialIntegrityOverlay']) && ($_POST['referentialIntegrityOverlay'] == 'on')) { + $conf->setReferentialIntegrityOverlay('true'); + } + else { + $conf->setReferentialIntegrityOverlay('false'); + } /* if (!$conf->set_cacheTimeout($_POST['cachetimeout'])) { $errors[] = array("ERROR", _("Cache timeout is invalid!")); }*/