Passwords of existing users not working. How to update?
-
This is a great plugin! Got it working with a simplesamlphp 1.13.2 identity provider… for new (non-existing) user accounts, that is.
For existing users, there is no way to sign in through IDP, because their existing passwords are not recognized by this plugin, as mentioned before in this topic and others. We get the following message: “ERROR: The password you entered for the username … is incorrect. Lost your password?”
The plugin creates a password for new users based on a (sha265)hash of the user name with the constant(‘AUTH_KEY’) as secret. So, I replaced the passwords of existing users by with
$newpassword = hash_hmac(‘sha256’,$login,constant(‘AUTH_KEY’));
But, the new passwords are not accepted by the plugin.
What should I update the passwords of existing accounts with to solve this issue?
PS. I also tried the following:
let the plugin create a new user with a working password > copy login and working password (hash) from db > delete the user > manually create a new user with same copied login and password combination.
But: the password was not recognized for the loginname when authenticated through IDP?
- The topic ‘Passwords of existing users not working. How to update?’ is closed to new replies.