thorin/redmine_ldap_sync — Issue #22: rake erroring out when attempting to update a user
Author: turbochad
Created: 2012-02-08 18:24:43+00:00
State: open

When I run the rake script to sync with my ldap I get

rake aborted!
undefined method `add_to_auth_source_group' for #

This happens when it's attempting to unlock an account that's currently locking in the Redmine database.

Trace Output:

** Execute environment
** Execute redmine:plugins:redmine_ldap_sync:sync_users
Synchronizing AuthSource syseng...
-- Updating user 'chad'...
rake aborted!
undefined method `add_to_auth_source_group' for #
/storage/drobo_id0/redmine-1.3.1/vendor/rails/activerecord/lib/active_record/attribute_methods.rb:260:in `method_missing'
/storage/drobo_id0/redmine-1.3.1/vendor/plugins/redmine_ldap_sync/lib/redmine_ldap_sync/redmine_ext/auth_source_ldap_patch.rb:12:in `sync_groups'
/storage/drobo_id0/redmine-1.3.1/vendor/plugins/redmine_ldap_sync/lib/redmine_ldap_sync/redmine_ext/auth_source_ldap_patch.rb:70:in `sync_users'
/storage/drobo_id0/redmine-1.3.1/vendor/plugins/redmine_ldap_sync/lib/redmine_ldap_sync/redmine_ext/auth_source_ldap_patch.rb:47:in `each'
/storage/drobo_id0/redmine-1.3.1/vendor/plugins/redmine_ldap_sync/lib/redmine_ldap_sync/redmine_ext/auth_source_ldap_patch.rb:47:in `sync_users'
/storage/drobo_id0/redmine-1.3.1/vendor/plugins/redmine_ldap_sync/lib/tasks/sync_users.rake:8
/storage/drobo_id0/redmine-1.3.1/vendor/plugins/redmine_ldap_sync/lib/tasks/sync_users.rake:6:in `each'
/storage/drobo_id0/redmine-1.3.1/vendor/plugins/redmine_ldap_sync/lib/tasks/sync_users.rake:6
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/lib64/ruby/gems/1.8/gems/rake-0.9.2.2/bin/rake:33
/usr/bin/rake:19:in `load'
/usr/bin/rake:19
Tasks: TOP => redmine:plugins:redmine_ldap_sync:sync_users

I'm using Redmine 1.3.1 against OpenLDAP.

Any thoughts?

Thanks
Chad