Could not authorize you from LDAP, because "undefined method 'provider' for nil:nilclass"
Created by: jayenne01
Logging in via LDAP fails with above message and following log entries, if a user has already signed-up locally with an identical username:
Started GET "/users/sign_in" for 127.0.0.1 at 2015-03-18 16:28:47 +0100 Processing by SessionsController#new as HTML Completed 200 OK in 47ms (Views: 30.8ms | ActiveRecord: 4.5ms) Started POST "//api/v3/internal/allowed" for 127.0.0.1 at 2015-03-18 16:28:49 +0100 Started POST "//api/v3/internal/allowed" for 127.0.0.1 at 2015-03-18 16:28:54 +0100 Started POST "/users/auth/ldap/callback" for 127.0.0.1 at 2015-03-18 16:29:06 +0100 Processing by OmniauthCallbacksController#ldap as HTML Parameters: {"utf8"=>"â", "authenticity_token"=>"+HOLgg=", "username"=>"XXXXX", "password"=>"[FILTERED]"} Completed 500 Internal Server Error in 236ms
Version is 7.7.2