You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had an issue authenticating even though my credentials were correct. I have currently solved the problem for myself by changing the following code located at: lib/devise_ldap_authenticatable/ldap/connection.rb:80
defauthenticate!returnfalseunless(@password.present? || @allow_unauthenticated_bind)@ldap.auth(dn,@password)@ldap.bindvalid_login?# <== I added this lineend
It seems like we can enter a case where we set our credentials and bind AFTER we have already done our user search. That doesn't seem to make any sense, unless I am doing something wrong ??
Let me know if I can open a PR for this, would love to contribute!
The text was updated successfully, but these errors were encountered:
I had an issue authenticating even though my credentials were correct. I have currently solved the problem for myself by changing the following code located at:
lib/devise_ldap_authenticatable/ldap/connection.rb:80
It seems like we can enter a case where we set our credentials and bind AFTER we have already done our user search. That doesn't seem to make any sense, unless I am doing something wrong ??
Let me know if I can open a PR for this, would love to contribute!
The text was updated successfully, but these errors were encountered: