// Original Author of file: Julien Dombre // Purpose of file: // ---------------------------------------------------------------------- define('GLPI_ROOT', '..'); include GLPI_ROOT . "/inc/includes.php"; header("Content-Type: text/html; charset=UTF-8"); header_nocache(); if (!isset($_POST['id'])) { exit; } if (!isset($_REQUEST['glpi_tab'])) { exit; } checkRight('config', 'r'); $authldap = new AuthLDAP(); if ($_POST['id'] > 0 && $authldap->can($_POST['id'], 'r')) { switch ($_REQUEST['glpi_tab']) { case -1: $authldap->showFormUserConfig($_POST['id'], $_POST['target']); $authldap->showFormGroupsConfig($_POST['id'], $_POST['target']); $authldap->showFormAdvancedConfig($_POST['id'], $_POST['target']); $authldap->showFormReplicatesConfig($_POST['id'], $_POST['target']); Log::showForItem($authldap); break; case 2: $authldap->showFormUserConfig($_POST['id'], $_POST['target']); break; case 3: $authldap->showFormGroupsConfig($_POST['id'], $_POST['target']); break; case 4: