mirror of
https://github.com/Cacti/cacti.git
synced 2026-11-21 20:23:18 +09:00
* Fix issue #1122 - Local user login fails with Multi/Single LDAP enabled Code was not consistent with how it was generating the password hashes and comparing them. To fix this, added compat_password_xxx functions that check for the availability of the newer password_xxx functions and if not present revert back to the md5 version. Changes made are: auth_changepassword.php: * Break out of switch when error message set * Reduce duplication of code when checking passwords * Use local variables rather than constantly pulling in request ones * Use new compat_password_xxx functions auth_login.php: * Added some debug logging to identify login issues * Allow local login even if using ldap * Use new compat_password_xxx functions * Remove password from SQL search as hash can change and we don't know what it would have been at the time it was set user_admin.php * Use new compat_password_xxx functions lib\auth.php: * Added compat_password_verify, compat_password_hash and compat_password_rehash to check for PHP 5.7+ compatible functions other use MD5 * Reduced SQL query to just required user in secpass_login_process() * Fixed password check in secpass_check_history() * Fixed return value check of secpass_check_pass() in secpass_login_process() * Use new compat_password_xxx functions * Update CHANGELOG * Fixup for Issue #1122, corrects some minor issues * Merge branch 'Issue-1122' of https://github.com/netniV/cacti into Issue-1122 Update log message to be warning notj ust a normal message * Fix issue of local auth bypas * Update CHANGELOG Fix up CHANGELOG issues * Update auth.php Fix up formatting issues