Project

General

Profile

Upgrade from 1.2.1 to 1.4 Error ldap-authorization

Added by Artem Moshiyan over 12 years ago

Hello, first of all, sorry for my english)

After redmine upgrading from 1.2.1 to 1.4:
(1. install bitnami stack
2. restore backup of mysql database
3. restore files directory, configs and plugins),
i can't login to project and get this error in logs:

Processing AccountController#login (for 172.172.172.45 at 2012-04-18 16:30:16) [POST]
  Parameters: {"action"=>"login", "back_url"=>"http%3A%2F%2F172.172.177.139%2Fredmine%2F", "controller"=>"account", "password"=>"[FILTERED]", "authenticity_token"=>"bTUIEsD/bDb4i5JUiF95vM=", "username"=>"user1"}

NameError (undefined local variable or method `filter' for #<AuthSourceLdap:0x7fa3738c7d00>):
  app/models/auth_source_ldap.rb:72:in `ldap_filter'
  app/models/auth_source_ldap.rb:140:in `get_user_dn'
  app/models/auth_source_ldap.rb:47:in `authenticate'
  app/models/user.rb:141:in `try_to_login'
  app/controllers/account_controller.rb:151:in `password_authentication'
  app/controllers/account_controller.rb:146:in `authenticate_user'
  app/controllers/account_controller.rb:30:in `login'
  config/initializers/mongrel_cluster_with_rails_211_fix.rb:62:in `dispatch_cgi'

Rendering /usr/local/redmine/apps/redmine/public/500.html (500 Internal Server Error)

How can i resolve this error? On 1.3.1 version all works fine.

Many thanks, for your attention!


Replies (3)

RE: Upgrade from 1.2.1 to 1.4 Error ldap-authorization - Added by Paul Farag over 12 years ago

I'm seeing the same issue trying to migrate to 1.4 and also seeing the following error when trying to authenticate users in the local database (as opposed to LDAP):

NoMethodError (undefined method `multiple?' for #<UserCustomField:0x7fc88b1ba048>):
  app/models/user.rb:159:in `try_to_login'
  app/controllers/account_controller.rb:151:in `password_authentication'
  app/controllers/account_controller.rb:146:in `authenticate_user'
  app/controllers/account_controller.rb:30:in `login'
  passenger (3.0.11) lib/phusion_passenger/rack/request_handler.rb:96:in `process_request'
  passenger (3.0.11) lib/phusion_passenger/abstract_request_handler.rb:513:in `accept_and_process_next_request'
  passenger (3.0.11) lib/phusion_passenger/abstract_request_handler.rb:274:in `main_loop'

Ruby: 1.8.7
Rails: 2.3.14
Rubygem: 1.3.7

Let me know if I can provide any more useful information or if this should be filed as a bug. Thanks!

RE: Upgrade from 1.2.1 to 1.4 Error ldap-authorization - Added by yusuke kokubo over 12 years ago

I got same error.

I was put on

bundle exec rake db:migrate RAILS_ENV=production

and it was solved.

Hope your help.

RE: Upgrade from 1.2.1 to 1.4 Error ldap-authorization - Added by Paul Farag over 12 years ago

That fixed it, thank you! I'd run 'rake db:migrate' but not with bundle.

    (1-3/3)