-
Notifications
You must be signed in to change notification settings - Fork 358
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
Validation error on short passwords #212
Comments
try setting config.password_length = range1..range2 in devise config |
Yeah, I did that as a workaround but I think devise_ldap_authenticatable should do that by itself. |
Got the same problem. Our Ldap password policy diverge in some cases from our application using Maybe |
Well, I think the password length should be checked only when creating the account. Currently it throws an error on every login. In my opinion at that point everything that's in the ldap database should be considered correct even if it doesn't match the client's rules for new passwords. |
I recently had a case where a user had a rather short password (don't ask why. He's been told to change it). When he logged in via devise_ldap_authenticatable, he just got a generic error 500. Digging through the logs revealed that the root cause was a failing validation regarding password length.
I would expect devise_ldap_authenticatable to skip that validation. If the user exists with that password on the ldap server, it should be okay.
The text was updated successfully, but these errors were encountered: