rbCAS / CASino

CASino is a Ruby-based Single Sign-On solution supporting the CAS standard
MIT License
329 stars 189 forks source link

User connexion problem #187

Open JeremiePilette opened 7 years ago

JeremiePilette commented 7 years ago

Hi, I have just finished to install CASInoApp-Master on the server. I made a configuration to connect to my LDAP serveur. When I login by using username and password of the user in my LDAP, I have this message "We're sorry, but something went wrong."

And my Apche2 logs : App 2674 stderr: Started POST "/login" for 81.80.108.129 at 2017-06-23 17:38:58 +0200 App 2674 stderr: Processing by CASino::SessionsController#create as HTML App 2674 stderr: Parameters: {"utf8"=>"✓", "authenticity_token"=>"bW02JxCbswRs8xWVNFe//hllj3MIhOcNeVS1k84mdFG9Jo/gOOiRmoanh338ZizefAVMUW+eIP36l8cdDml1FQ==", "lt"=>"LT-14982323281996-tcK023OSifmKniOCyZSgLKDjLAoKeyqPzqnyHACd", "username"=>"rpilette", "password"=>"[FILTERED]", "button"=>""} App 2674 stderr: Completed 500 Internal Server Error in 45ms (ActiveRecord: 42.6ms) App 2674 stderr: App 2674 stderr: NoMethodError (undefined method each' for nil:NilClass): App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/casino-4.0.3/app/processors/casino/authentication_processor.rb:32:inblock in authenticators' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/casino-4.0.3/app/processors/casino/authentication_processor.rb:31:in tap' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/casino-4.0.3/app/processors/casino/authentication_processor.rb:31:inauthenticators' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/casino-4.0.3/app/processors/casino/authentication_processor.rb:8:in validate_login_credentials' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/casino-4.0.3/app/controllers/casino/sessions_controller.rb:23:increate' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_controller/metal/implicit_render.rb:4:in send_action' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:198:inprocess_action' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_controller/metal/rendering.rb:10:in process_action' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:20:inblock in process_action' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:117:incall' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:555:in block (2 levels) in compile' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:incall' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:505:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:92:inrun_callbacks' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in _run_process_action_callbacks' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:inrun_callbacks' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/abstract_controller/callbacks.rb:19:in process_action' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_controller/metal/rescue.rb:29:inprocess_action' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:32:in block in process_action' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:inblock in instrument' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/notifications/instrumenter.rb:20:in instrument' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/notifications.rb:164:ininstrument' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_controller/metal/instrumentation.rb:30:in process_action' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_controller/metal/params_wrapper.rb:250:inprocess_action' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/railties/controller_runtime.rb:18:in process_action' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/abstract_controller/base.rb:137:inprocess' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionview-4.2.5.1/lib/action_view/rendering.rb:30:in process' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_controller/metal.rb:196:indispatch' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_controller/metal/rack_delegation.rb:13:in dispatch' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_controller/metal.rb:237:inblock in action' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:74:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:74:indispatch' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:43:in serve' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:43:inblock in serve' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:in each' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:inserve' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:815:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/engine.rb:518:incall' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in public_send' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:inmethod_missing' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/mapper.rb:51:in serve' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:43:inblock in serve' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:in each' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/journey/router.rb:30:inserve' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/routing/route_set.rb:815:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/http_accept_language-2.0.5/lib/http_accept_language/middleware.rb:14:incall' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/etag.rb:24:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/conditionalget.rb:38:incall' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/head.rb:13:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/params_parser.rb:27:incall' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/flash.rb:260:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:225:incontext' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/session/abstract/id.rb:220:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/cookies.rb:560:incall' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/query_cache.rb:36:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activerecord-4.2.5.1/lib/active_record/connection_adapters/abstract/connection_pool.rb:653:incall' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/callbacks.rb:29:in block in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:88:inrun_callbacks' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:778:in _run_call_callbacks' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/callbacks.rb:81:inrun_callbacks' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/callbacks.rb:27:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/remote_ip.rb:78:incall' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/debug_exceptions.rb:17:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/show_exceptions.rb:30:incall' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/rack/logger.rb:38:in call_app' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/rack/logger.rb:20:inblock in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in block in tagged' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:26:intagged' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/tagged_logging.rb:68:in tagged' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/rack/logger.rb:20:incall' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/actionpack-4.2.5.1/lib/action_dispatch/middleware/request_id.rb:21:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/methodoverride.rb:22:incall' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/runtime.rb:18:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/activesupport-4.2.5.1/lib/active_support/cache/strategy/local_cache_middleware.rb:28:incall' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/rack-1.6.4/lib/rack/sendfile.rb:113:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/railties-4.2. App 2674 stderr: 5.1/lib/rails/engine.rb:518:incall' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/application.rb:165:in call' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:inpublic_send' App 2674 stderr: vendor/bundle/ruby/2.1.0/gems/railties-4.2.5.1/lib/rails/railtie.rb:194:in method_missing' App 2674 stderr: /usr/lib/ruby/vendor_ruby/phusion_passenger/rack/thread_handler_extension.rb:74:inprocess_request' App 2674 stderr: /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:141:in accept_and_process_next_request' App 2674 stderr: /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler/thread_handler.rb:109:inmain_loop' App 2674 stderr: /usr/lib/ruby/vendor_ruby/phusion_passenger/request_handler.rb:455:in `block (3 levels) in start_threads' App 2674 stderr: App 2674 stderr: Do you have an idea? Thanks a lot Jérémie