GLPI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with GLPI. If not, see <http://www.gnu.org/licenses/>. -------------------------------------------------------------------------- */ /** @file * @brief */ include '../inc/includes.php'; $group = new Group(); if (!Session::haveRightsOr('group', array(CREATE, UPDATE))) { Session::redirectIfNotLoggedIn(); Html::displayRightError(); } Session::checkRight('user', User::UPDATEAUTHENT); Html::header(__('LDAP directory link'), $_SERVER['PHP_SELF'], "admin", "group", "ldap"); if (isset($_GET['next'])) { AuthLdap::ldapChooseDirectory($_SERVER['PHP_SELF']); } else { if (isset($_POST["change_ldap_filter"])) { if (isset($_POST["ldap_filter"])) { $_SESSION["ldap_group_filter"] = $_POST["ldap_filter"]; } if (isset($_POST["ldap_filter2"])) { $_SESSION["ldap_group_filter2"] = $_POST["ldap_filter2"]; } Html::redirect($_SERVER['PHP_SELF']);
/** * Check global right on an object * * @param $right Right to check : c / r / w / d * * @return nothing **/ function checkGlobal($right) { global $CFG_GLPI; if (!$this->canGlobal($right)) { // Gestion timeout session Session::redirectIfNotLoggedIn(); Html::displayRightError(); } }