diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 39fc17626e..ba5602312e 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,13 @@ +2009-01-22 Evi Vanoost + + * include/auth/ldap.php: Finally fixed (hopefully) the last major bug + + * godmode/extensions.php: Fixed something that prevented links from + generating + + * extensions/update_manager/lib/libupdate_manager.php: Fixed proxy not + being filled in and giving error messages. Now the thing works. + 2009-01-22 Evi Vanoost * include/auth/mysql.php, include/auth/ldap.php, diff --git a/pandora_console/extensions/update_manager/lib/libupdate_manager.php b/pandora_console/extensions/update_manager/lib/libupdate_manager.php index fcc44b0258..fdc4978e0b 100644 --- a/pandora_console/extensions/update_manager/lib/libupdate_manager.php +++ b/pandora_console/extensions/update_manager/lib/libupdate_manager.php @@ -37,6 +37,10 @@ function um_db_load_settings () { return NULL; } $settings = new stdClass (); + $settings->proxy = ''; + $settings->proxy_port = ''; + $settings->proxy_user = ''; + $settings->proxy_pass = ''; while ($result->fetchInto ($setting)) { $key = $setting->key; $settings->$key = $setting->value; diff --git a/pandora_console/godmode/extensions.php b/pandora_console/godmode/extensions.php index 23934d7736..9301b94752 100644 --- a/pandora_console/godmode/extensions.php +++ b/pandora_console/godmode/extensions.php @@ -39,8 +39,9 @@ $table->data = array (); foreach ($config['extensions'] as $extension) { if ($extension['godmode_function'] == '') continue; + $data = array (); - $data[0] = ''.$menu['name']; + $data[0] = ''.$extension['godmode_menu']['name'].''; array_push ($table->data, $data); } diff --git a/pandora_console/include/auth/ldap.php b/pandora_console/include/auth/ldap.php index 4c933f434d..228f27deaf 100644 --- a/pandora_console/include/auth/ldap.php +++ b/pandora_console/include/auth/ldap.php @@ -20,12 +20,11 @@ if (!isset ($config)) { die ('You cannot access this file directly!'); } -//TODO: Make the following 5 valid throughout Pandora FMS $config["user_can_update_info"] = false; $config["user_can_update_password"] = false; $config["admin_can_add_user"] = false; $config["admin_can_delete_user"] = false; -$config["admin_can_disable_user"] = false; +$config["admin_can_disable_user"] = false; //Not implemented $config["admin_can_make_admin"] = false; //Required and optional keys for this function to work @@ -46,7 +45,7 @@ function process_user_login ($login, $pass) { } global $config; - $profile = get_db_value ("id_user", "tusuario_perfil", "id_user", $login); + $profile = get_db_value ("id_usuario", "tusuario_perfil", "id_usuario", $login); if ($profile === false && empty ($config["auth"]["create_user_undefined"])) { $config["auth_error"] = "No profile"; //Error message, don't translate