LDAP Authentication failures in 7.6.2
Created by: jchodakowski
I'm getting the following in the production.log when trying to authenticate against a known good LDAP source:
Started POST "/users/auth/ldapmain/callback" for 74.121.197.77 at 2014-12-29 10:07:56 -0500
Processing by OmniauthCallbacksController#ldapmain as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"eOYz1AijHR78B99qav9ICTqkIwOocT634ZjpH05Loh0=", "username"=>"jasonc", "password"=>"[FILTERED]"}
Completed 500 Internal Server Error in 13ms
Processing by OmniauthCallbacksController#failure as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"eOYz1AijHR78B99qav9ICTqkIwOocT634ZjpH05Loh0=", "username"=>"jasonc", "password"=>"[FILTERED]"}
Redirected to https://gitlab.declivis.com/users/sign_in
Completed 302 Found in 4ms (ActiveRecord: 0.0ms)
Started GET "/users/sign_in" for 74.121.197.77 at 2014-12-29 10:07:56 -0500
Processing by SessionsController#new as HTML
Completed 200 OK in 15ms (Views: 9.4ms | ActiveRecord: 0.0ms)
There are no other messages on the server side that indicate what the server error actually is. On the client side you see this:
Could not authorize you from Ldapmain because "Undefined method 'provider' for nil:nilclass".
The LDAP connectivity is good and tests properly:
bundle exec rake gitlab:ldap:check RAILS_ENV=production
Checking LDAP ...
LDAP users with access to your GitLab server (only showing the first 100 results)
Server: ldapmain
DN: uid=jasonc,ou=users,dc=declivis,dc=com uid: jasonc
DN: uid=jenkins,ou=users,dc=declivis,dc=com uid: jenkins
Checking LDAP ... Finished
Can provide configurations on request, but honestly I think the configuration works, something else is wonky... which I'm willing to admin could be missing from the LDAP schema but a better error message on the server side would help.