diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index 00e20274b0..b242ca59cd 100644 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -87,13 +87,7 @@ echo ' html_print_image ($config['homeurl'] . "/images/pandora_login.png", false, array ("class" => "login_logo", "alt" => "logo", "border" => 0, "title" => $logo_title), false, true); } echo ''; - echo '
'; - + // This prints the current pandora console version. // For stable/live function it might be wise to comment it out diff --git a/pandora_console/godmode/setup/setup_auth.php b/pandora_console/godmode/setup/setup_auth.php index 5ee5d6cc86..17bef785d7 100644 --- a/pandora_console/godmode/setup/setup_auth.php +++ b/pandora_console/godmode/setup/setup_auth.php @@ -251,8 +251,8 @@ echo ''; // Event callback for the auth select function show_selected_rows (event) { var auth_method = $(this).val(); - - if ((auth_method !== 'mysql') && (auth_method !== 'saml')) { + + if (auth_method !== 'mysql') { $('tr.remote').show(); show_autocreate_options(null); } diff --git a/pandora_console/include/constants.php b/pandora_console/include/constants.php index 49b1e7451c..4c79ef99aa 100644 --- a/pandora_console/include/constants.php +++ b/pandora_console/include/constants.php @@ -387,11 +387,4 @@ define("COLLECTION_UNSAVED", 3); /* PAGINATION */ define("PAGINATION_BLOCKS_LIMIT", 15); - -/* SAML attributes constants */ -define("ROLES_AND_TAGS", "urn:mace:rediris.es:entitlement:monitoring:"); -define("USER_DESC", "commonName"); -define("ID_USER_IN_PANDORA", "eduPersonTargetedId"); -define("GROUP_IN_PANDORA", "schacHomeOrganization"); -define("MAIL_IN_PANDORA", "mail"); ?> diff --git a/pandora_console/index.php b/pandora_console/index.php index 630db703fa..7acafe2fba 100755 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -178,21 +178,13 @@ if (! isset ($config['id_user']) && isset ($_GET["login"])) { $pass = get_parameter_post ("pass"); //This is the variable with the password $nick = db_escape_string_sql($nick); $pass = db_escape_string_sql($pass); - - $login_button_saml = get_parameter("login_button_saml", false); - if (($config['auth'] == 'saml') && $login_button_saml) { - include_once(ENTERPRISE_DIR . "/include/auth/saml.php"); - $saml_user_id = saml_process_user_login(); - $nick_in_db = $saml_user_id; - } - else { - // process_user_login is a virtual function which should be defined in each auth file. - // It accepts username and password. The rest should be internal to the auth file. - // The auth file can set $config["auth_error"] to an informative error output or reference their internal error messages to it - // process_user_login should return false in case of errors or invalid login, the nickname if correct - $nick_in_db = process_user_login ($nick, $pass); - } - + + // process_user_login is a virtual function which should be defined in each auth file. + // It accepts username and password. The rest should be internal to the auth file. + // The auth file can set $config["auth_error"] to an informative error output or reference their internal error messages to it + // process_user_login should return false in case of errors or invalid login, the nickname if correct + $nick_in_db = process_user_login ($nick, $pass); + $expired_pass = false; if (($nick_in_db != false) && ((!is_user_admin($nick) @@ -360,11 +352,6 @@ if (isset ($_GET["bye"])) { // Unregister Session (compatible with 5.2 and 6.x, old code was deprecated unset($_SESSION['id_usuario']); unset($iduser); - if ($config['auth'] == 'saml') { - require_once('/opt/simplesamlphp/lib/_autoload.php'); - $as = new SimpleSAML_Auth_Simple('example-userpass'); - $as->logout(); - } while (@ob_end_flush ()); exit ("