Open leonsp opened 8 years ago
Thanks this helped me out. Doing this seems shorter/future proof (until the actual fix is in as reset_password! method might have changed between your post in 2015 and now ;) ):
def reset_password(new_password, new_password_confirmation)
reset_password!(new_password, new_password_confirmation)
end
This makes the password forget functional again but on my setup however the ldap password is not yet actually changed (it does create a session + logs in properly after giving pass+confirmation with above fix but when doing a logout/login only the old password works). In server logs I see LDAP Error 32: No such object so I'll need to investigate further to get this working completely.
Just FYI: This is still the case, and the fixes still work.
For me, it also updates LDAP passwords when resetting them. (I'm using the password builder config to ensure the exact format our setup requires.)
The current Devise password reset process does not work in devise_ldap_authenticatable because Devise now uses
reset_password
but devise_ldap_authenticatable only overridesreset_password!
As an end user, I can work around by adding this to my user model: