Ldap Sync 1.3.0 not syncing | Redmine 2.2 - new install
Added by Steve F. almost 12 years ago
Hi everyone,
I need some pointers on how to configure Ldap Sync with AD 2003
I am running brand new redmine 2.2 (windows 2008r2 bitnami flavor).
Ldap Sync 1.3 plugin installed. Thats it.
LDAP configuration configured and tested OK
I would like to sync my AD users that are members of group MAINGROUP, located in OU=MY OU,DC=DOMAIN,DC=COM
I setup that plugin as following:
Group base DN: dc=domain,dc=com
User objectclass: user --> default plugin settings
Groups objectclass: group --> default plugin settings
Group search filter: (memberof=cn=MAINGROUP,ou=MY OU,dc=DOMAIN,dc=COM)
Account disabled test: (default plugin settings)
Group membership: On the group class
Enable Nested groups: Disabled
next two setting revert to default after you click apply
Attributes Group name (group): samaccountname
Attributes Account flags (user): useraccountcontrol
Sync settings:
Create new users - checked
Sync users attributes - checked
Attributes to be synced: First Name, Last name, Email
when I ran
rake, system says "Synchronizing AuthSource domain.com" and exits back to command prompt.
Thanks.
Replies (11)
RE: Ldap Sync 1.3.0 not syncing | Redmine 2.2 - new install - Added by Ricardo S over 11 years ago
The group search filter is incorrect.
The filter is applied to a group entry.
The synchronization applies to all users.
If you're intention is to restrict access to members to the group MAINGROUP, you need to set Users must be member of = MAINGROUP.
Consider using the version 2.0 of the plugin. It is easier to test.
RE: Ldap Sync 1.3.0 not syncing | Redmine 2.2 - new install - Added by jie zheng over 11 years ago
Dear Ricardo S,
I have installed the plugin Redmine Ldap Syn,
my redmine server version is 2.2.3, the plugin version is 2.0.0.
After i installed the plugin, there are some error occur:
1) In administrator page, the plugin shows as "translation missing: en.label_ldap_synchronization"
2) when l click the link in administrator, the page shows "Page not found
The page you were trying to access doesn't exist or has been removed."
and the log information is
ActionController::RoutingError (uninitialized constant LdapSettingsController):
activesupport (3.2.12) lib/active_support/inflector/methods.rb:230:in `block in constantize'
activesupport (3.2.12) lib/active_support/inflector/methods.rb:229:in `each'
activesupport (3.2.12) lib/active_support/inflector/methods.rb:229:in `constantize'
actionpack (3.2.12) lib/action_dispatch/routing/route_set.rb:69:in `controller_reference'
actionpack (3.2.12) lib/action_dispatch/routing/route_set.rb:54:in `controller'
actionpack (3.2.12) lib/action_dispatch/routing/route_set.rb:32:in `call'
journey (1.0.4) lib/journey/router.rb:68:in `block in call'
journey (1.0.4) lib/journey/router.rb:56:in `each'
journey (1.0.4) lib/journey/router.rb:56:in `call'
actionpack (3.2.12) lib/action_dispatch/routing/route_set.rb:601:in `call'
rack-openid (1.3.1) lib/rack/openid.rb:98:in `call'
actionpack (3.2.12) lib/action_dispatch/middleware/best_standards_support.rb:17:in `call'
rack (1.4.5) lib/rack/etag.rb:23:in `call'
rack (1.4.5) lib/rack/conditionalget.rb:25:in `call'
actionpack (3.2.12) lib/action_dispatch/middleware/head.rb:14:in `call'
actionpack (3.2.12) lib/action_dispatch/middleware/params_parser.rb:21:in `call'
actionpack (3.2.12) lib/action_dispatch/middleware/flash.rb:242:in `call'
rack (1.4.5) lib/rack/session/abstract/id.rb:210:in `context'
rack (1.4.5) lib/rack/session/abstract/id.rb:205:in `call'
actionpack (3.2.12) lib/action_dispatch/middleware/cookies.rb:341:in `call'
activerecord (3.2.12) lib/active_record/query_cache.rb:64:in `call'
activerecord (3.2.12) lib/active_record/connection_adapters/abstract/connection_pool.rb:479:in `call'
actionpack (3.2.12) lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
activesupport (3.2.12) lib/active_support/callbacks.rb:405:in `_run__875147721__call__557739172__callbacks'
activesupport (3.2.12) lib/active_support/callbacks.rb:405:in `__run_callback'
activesupport (3.2.12) lib/active_support/callbacks.rb:385:in `_run_call_callbacks'
activesupport (3.2.12) lib/active_support/callbacks.rb:81:in `run_callbacks'
actionpack (3.2.12) lib/action_dispatch/middleware/callbacks.rb:27:in `call'
actionpack (3.2.12) lib/action_dispatch/middleware/remote_ip.rb:31:in `call'
actionpack (3.2.12) lib/action_dispatch/middleware/debug_exceptions.rb:16:in `call'
actionpack (3.2.12) lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
railties (3.2.12) lib/rails/rack/logger.rb:32:in `call_app'
railties (3.2.12) lib/rails/rack/logger.rb:16:in `block in call'
activesupport (3.2.12) lib/active_support/tagged_logging.rb:22:in `tagged'
railties (3.2.12) lib/rails/rack/logger.rb:16:in `call'
actionpack (3.2.12) lib/action_dispatch/middleware/request_id.rb:22:in `call'
rack (1.4.5) lib/rack/methodoverride.rb:21:in `call'
could you please provide me the help?
thanks.
RE: Ldap Sync 1.3.0 not syncing | Redmine 2.2 - new install - Added by Ricardo S over 11 years ago
The plugins are now installed on a different route.
Make sure you have all the plugin files under <redmine install dir>/plugins/redmine_ldap_sync/
and not under the old plugins path <redmine install dir>/vendor/plugins/redmine_ldap_sync/.
RE: Ldap Sync 1.3.0 not syncing | Redmine 2.2 - new install - Added by jie zheng over 11 years ago
Yes, i installed in <redmine install dir>/plugins/redmine_ldap_sync/
RE: Ldap Sync 1.3.0 not syncing | Redmine 2.2 - new install - Added by Ricardo S over 11 years ago
Do you have the following file? :
<redmine install dir>/plugins/redmine_ldap_sync/app/controllers/ldap_settings_controller.rb
RE: Ldap Sync 1.3.0 not syncing | Redmine 2.2 - new install - Added by Ricardo S over 11 years ago
Also have a look at the issue: https://github.com/thorin/redmine_ldap_sync/issues/68
It should be related. The solution was to reinstall the plugin from scratch.
RE: Ldap Sync 1.3.0 not syncing | Redmine 2.2 - new install - Added by jie zheng over 11 years ago
i change the redmine version to 2.3.1 and reinstall the plugin, the error disappear, but i don't know how to configure the LDAP, when i click "Test", occur below error,
Result
Users enabled: a total of 0
[]Users disabled by flag: a total of 0
[]Groups: a total of 0
[]Log messages:
undefined method `downcase' for nil:NilClassC:/BitNami/redmine-2.3.1-0/ruby/lib/ruby/1.9.1/set.rb:222:in `block in each'
RE: Ldap Sync 1.3.0 not syncing | Redmine 2.2 - new install - Added by jie zheng over 11 years ago
now i can run the "Test", the result is, but why i can't login the redmine with "jie.zheng" ?
User "jie.zheng":
Last name = Zheng
First name = Jie
Email = jie.zheng@SALIRA.com
Groups = []Users enabled: a total of 266
Ricardo S wrote:
Also have a look at the issue: https://github.com/thorin/redmine_ldap_sync/issues/68
It should be related. The solution was to reinstall the plugin from scratch.
RE: Ldap Sync 1.3.0 not syncing | Redmine 2.2 - new install - Added by Ricardo S over 11 years ago
The plugin is not responsible with the authentication (login).
Have a look at the LDAP Authentication configuration to see if you have the correct configuration there.
Make sure you have the "on-the-fly" user creation enabled or you have your user created on redmine beforehand.
RE: Ldap Sync 1.3.0 not syncing | Redmine 2.2 - new install - Added by jie zheng over 11 years ago
thanks, i have resolved it.
And could you please tell me how to write the automatic rake script in windows?
RE: Ldap Sync 1.3.0 not syncing | Redmine 2.2 - new install - Added by Ricardo S over 11 years ago
I can't give the exact details since I've never done it.
You probably have to create a Scheduled Task to run:
<ruby install dir>/bin/rake -f /opt/redmine/Rakefile --silent redmine:plugins:ldap_sync:sync_users RAILS_ENV=production