If current authentication method is set to None, change to Builtin.
To achieve this, the code will look for a valid administration user that will be used to reset the password. This is achieved by searching for the Primary Admin, and then any admin with console access. Once an admin has been found, the must_change_password and change_password flags are set, the password is cleared and the user is automatically logged in before being forced to change the empty password.
If no admin can be located, the script will die to prevent issues and allow manual fixing of the problem. The simpliest way to do this would be to utilise the INSERT statement that is used for the 'admin' user in the cacti.sql's user_auth table, plus the INSERT for user_id 1 into the user_auth_realm table.
Sometimes the upgrade privileges are not automatically applied if the system version was above 1.2 already. This version dependancy has been removed to always ensure that the privilege is granted should all administrators lose that privilege.
* First round of changes for #1717
* Various QA fixes
* Further round of QA
* Add Content-Type to headers
* Another round of QA
* Allow full screen changepassword
* Redirect to permission denied page instead of displaying local message
* Beginning of Install via AJAX calls
* Added steps 3 & 4 to the installer system
* Add background update procedure. Still needs more upgrade code adding, like upgrading the DB
* Minor fixup during QA
* Remove debug code from lib/functions.php
* More QA fixes, add slight delay to index.php initialisation to see javascript warning (should be removed)
* beta3 - added data source profiles
* beta4 - fix some issues found in QA
* beta5 - upgrade databsae routines added, error results screen styled
* Add some colour to the thumb icons
* QA fix to remove unneeded option
* Fix for PHP 5.4 travis failure
- Added and moved code to CACTI_VERSION constant
- Merged cacti versions and hash codes array to have one place to add versions
- Moved cacti version to file to facitate automation needs
- Cleaned up cli database upgrade script
auth.php:
- placed result of get_selected_theme() in var
functions.php:
- mailer():
- fetch date from setting by caching method
- read_config_option('settings_from_email') unnecessary
- 2x undefined function $mail->replyTo() (should be addReplyTo())
- calculate_percentiles()
- Final return statement has undeclared variable; I believe this should be results instead of result, but could not reproduce
index.php:
- only fetch the fields needed for querying external_links
- 2x </td> instead of </tr>