-
-
Notifications
You must be signed in to change notification settings - Fork 542
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't logon with admin after update from 2.1.16 to 2.1.17 #318
Comments
Hi, |
Hi, I have the same issue after upgrading from 2.1.15 to 2.1.17. Here's what I noticed.
Resetting regular admin's password via User Management page will not work as well. It keeps saying 'bad password' when you login. |
same problem here.. |
Is there a way to reset the admin password without doing a re-install? |
As the encryption is totally different, you should try to:
|
I have just tried that and moreover I checked it using chrome in incognito mode to make sure there where no cache messing things up, hash is still changed to "*0" and I can't still can't logon to the site. |
If you have this *0 appearing, something went bad with pw encryption.
I'm pretty sure it is missing COST define. Have you taken the package from master trunk? |
Dear Nils, As you pointed it's missing, that are the contents of my file: Yes, I did. I have downloaded it again and compared SHA1 hashes with previous downloaded and are exactly the same, can you check if it's the correct package please?: SHA1: "0bbc191b8bfb7b186a8b8b967513b85afd8b364f" Adding the COST line make logon work again, thank you very much. Regards |
I encountered the same problem after upgrading from 2.1.15 to 2.1.17 (RHEL 5, using LDAP). If I disable LDAP, then I can use the new admin password just fine. But with LDAP enabled (i.e., so our users can log on), the new admin password never works. Our sk.php was: When I change the password, the pw value in the database is: And the new password does not work. Then I changed the sk.php file to: I still can't log on with the new password, but the pw value looks different: And my sha1 for the downloaded zip file is the same as the one alarido posted. Edit to add: There was an LDAP-related bug, in addition to the sk.php problem. |
Here's what I did. If your pw hash value is "*0", simply update it with the old pw hash value from your previous backup SQL dump that you have prior to the upgrade procedure. Also make sure that your sk.php file has the following value @define('COST', '13'); Try login as admin and you should be able to do so. From there on you can disable the maintenance mode and change the admin password. |
I do not have a chance with me it does not work better with your suggestion. |
We use LDAP. To get logins as admin to work after upgrading TeamPass from 2.1.15 to 2.1.17, I needed to add the COST line to sk.php as described above, and apply the patch described in issue #320 |
Thanks a lot. I disable ldap since 2.1.13 and upgrade 2.1.17 and it's working.Have a nice day. |
#315 - jstree style.css badly referenced #314 - Folder is not being deleted #320 - Enabling LDAP prevents local admin login #317 - server expected extensions are tested #318 - Upgrade process badly creates sk.php file #348 - Fix for undefined index "isAdministratedByRole" #350 - Fix for Lock and delete user actions don't refresh page #354 - Fix for removing folders #359 - Fix for initial user password change complexity check * Fix - no possibility to update a Role * New - requested user password complexity shown when changing password
#315 - jstree style.css badly referenced #314 - Folder is not being deleted #320 - Enabling LDAP prevents local admin login #317 - server expected extensions are tested #318 - Upgrade process badly creates sk.php file #348 - Fix for undefined index "isAdministratedByRole" #350 - Fix for Lock and delete user actions don't refresh page #354 - Fix for removing folders #359 - Fix for initial user password change complexity check #371 - Fix for uploaded files corrupted #291 - Fix to support openLDAP / posix style LDAP #361 - Option to use login password as SALT key * Fix - no possibility to update a Role * Fix - editing users by clicking on the fields broken * Fix - parse error in database errors log * New - requested user password complexity shown when changing password * New - option for deactivate client-server encryption (usage of SSL) * New - in tree, new counters added (subfolders and items in subfolders numbers) * New language added - Catalan
#315 - jstree style.css badly referenced #314 - Folder is not being deleted #320 - Enabling LDAP prevents local admin login #317 - server expected extensions are tested #318 - Upgrade process badly creates sk.php file #348 - Fix for undefined index "isAdministratedByRole" #350 - Fix for Lock and delete user actions don't refresh page #354 - Fix for removing folders #359 - Fix for initial user password change complexity check #371 - Fix for uploaded files corrupted #291 - Fix to support openLDAP / posix style LDAP #361 - Option to use login password as SALT key * Fix - no possibility to update a Role * Fix - editing users by clicking on the fields broken * Fix - parse error in database errors log * New - requested user password complexity shown when changing password * New - option for deactivate client-server encryption (usage of SSL) * New - in tree, new counters added (subfolders and items in subfolders numbers) * New language added - Catalan
For those like me discovering after ages that the admin account is no longer working, you can manually recover this by tweaking entries in the sql database: Just copy a working user entry, set the admin field to 1, change the username (so that it really is a different user), then log into TeamPass as this new admin, change the real admin's password (even to the same value it was before), and you're done (and can delete the newly created user again. |
Upgrade works fine without any error, I have restored backups an retried upgrade and I have always the same problem.
Once I have to logon as admin I get an error "Bad password for this account"
I have noticed before trying to logon password hash for the user in MySQL is there:
mysql> select * from teampass_users;
+----+-------+----------------------------------------------+------------------+----------+--------------------------------+----------------+----------------------------------------------+-------+-------------+-------------------+----------------+--------------+------------------------+------------+------------------------+-----------------+----------+-----------------+------------------------+-----------+-----------+---------------+------+----------+-------------+-----------------------+
| id | login | pw | groupes_visibles | derniers | key_tempo | last_pw_change | last_pw | admin | fonction_id | groupes_interdits | last_connexion | gestionnaire | email | favourites | latest_items | personal_folder | disabled | no_bad_attempts | can_create_root_folder | read_only | timestamp | user_language | name | lastname | session_end | IsAdministratedByRole |
+----+-------+----------------------------------------------+------------------+----------+--------------------------------+----------------+----------------------------------------------+-------+-------------+-------------------+----------------+--------------+------------------------+------------+------------------------+-----------------+----------+-----------------+------------------------+-----------+-----------+---------------+------+----------+-------------+-----------------------+
| 1 | admin | HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH= | | | | 1323820800 | HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH= | 1 | 1 | | 1365152585 | 0 | | | 1 | 0 | 0 | 3 | 1 | 0 | | english | NULL | NULL | | 0 |
+----+-------+----------------------------------------------+------------------+----------+--------------------------------+----------------+----------------------------------------------+-------+-------------+-------------------+----------------+--------------+------------------------+------------+------------------------+-----------------+----------+-----------------+------------------------+-----------+-----------+---------------+------+----------+-------------+-----------------------+
1 rows in set (0.00 sec)
But once I try to logon it has changed:
mysql> select * from teampass_users;
+----+-------+----------------------------------------------+------------------+----------+--------------------------------+----------------+----------------------------------------------+-------+-------------+-------------------+----------------+--------------+------------------------+------------+------------------------+-----------------+----------+-----------------+------------------------+-----------+-----------+---------------+------+----------+-------------+-----------------------+
| id | login | pw | groupes_visibles | derniers | key_tempo | last_pw_change | last_pw | admin | fonction_id | groupes_interdits | last_connexion | gestionnaire | email | favourites | latest_items | personal_folder | disabled | no_bad_attempts | can_create_root_folder | read_only | timestamp | user_language | name | lastname | session_end | IsAdministratedByRole |
+----+-------+----------------------------------------------+------------------+----------+--------------------------------+----------------+----------------------------------------------+-------+-------------+-------------------+----------------+--------------+------------------------+------------+------------------------+-----------------+----------+-----------------+------------------------+-----------+-----------+---------------+------+----------+-------------+-----------------------+
| 1 | admin | *0 | | | | 1323820800 | HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH= | 1 | 1 | | 1365152594 | 0 | | | 1 | 0 | 0 | 4 | 1 | 0 | | english | NULL | NULL | | 0 |
+----+-------+----------------------------------------------+------------------+----------+--------------------------------+----------------+----------------------------------------------+-------+-------------+-------------------+----------------+--------------+------------------------+------------+------------------------+-----------------+----------+-----------------+------------------------+-----------+-----------+---------------+------+----------+-------------+-----------------------+
1 rows in set (0.00 sec)
The text was updated successfully, but these errors were encountered: