Change authenticate_with_ldap to find_for_ldap_authentication. This both better matches the structure of Devise's database_authenticatable and allows ldap to work alongside lockable. Refactor ldap strategy to work with these changes.