Re: [gitorious] Can't create LDAP team
Frank, You should specify only the part of the LDAP group DN that is not part of the group_search_dn: setting you specified. So for the group CN=RD,OU=Security Groups,OU=All Groups,DC=mycompany,DC=com you should specify: CN=RD and possibly change the group_search_dn attribute to include the common parts of any DN: OU=Security Groups,OU=All Groups,DC=mycompany,DC=com I'm a little puzzled by the error message you're getting (possibly a bug), but try the above and let me know what happens. Cheers, - Marius frank.g...@gmail.com writes: Hi Marus, trying to add an LDAP group to the team poduced the following entry in the log file Sorry, being a new to ruby this all is new to me. Frank # Logfile created on Thu Apr 04 13:06:11 +0200 2013 NoMethodError (undefined method `empty?' for nil:NilClass): app/models/ldap_group.rb:54:in `validate_ldap_dns' app/models/ldap_group.rb:46:in `each' app/models/ldap_group.rb:46:in `validate_ldap_dns' lib/gitorious/authorization/ldap/connection.rb:33:in `bind_as' app/models/ldap_group.rb:42:in `validate_ldap_dns' vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:178:in `send' vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:178:in `evaluate_method' vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:166:in `call' vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:90:in `run' vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:90:in `each' vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:90:in `send' vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:90:in `run' vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/callbacks.rb:276:in `run_callbacks' vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/validations.rb:1109:in `valid_without_callbacks?' vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/callbacks.rb:315:in `valid?' vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/validations.rb:1098:in `save_without_dirty!' vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/dirty.rb:87:in `save_without_transactions!' vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/transactions.rb:200:in `save!' vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction_without_callback' vendor/bundle/ruby/1.8/gems/after_commit-1.0.11/lib/after_commit/connection_adapters.rb:14:in `transaction' vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/transactions.rb:182:in `transaction' vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/transactions.rb:200:in `save!' vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/transactions.rb:208:in `rollback_active_record_state!' vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/transactions.rb:200:in `save!' app/models/finders/ldap_group_finder.rb:37:in `create_group' vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/connection_adapters/abstract/database_statements.rb:136:in `transaction_without_callback' vendor/bundle/ruby/1.8/gems/after_commit-1.0.11/lib/after_commit/connection_adapters.rb:14:in `transaction' vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/transactions.rb:182:in `transaction' vendor/bundle/ruby/1.8/gems/activerecord-2.3.18/lib/active_record/transactions.rb:188:in `transaction' app/models/finders/ldap_group_finder.rb:35:in `create_group' app/models/team.rb:81:in `create_group' app/controllers/groups_controller.rb:60:in `create' vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/base.rb:1333:in `send' vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/base.rb:1333:in `perform_action_without_filters' vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/filters.rb:617:in `call_filters' vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark' vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/core_ext/benchmark.rb:17:in `ms' /usr/lib/ruby/1.8/benchmark.rb:308:in `realtime' vendor/bundle/ruby/1.8/gems/activesupport-2.3.18/lib/active_support/core_ext/benchmark.rb:17:in `ms' vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue' vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/rescue.rb:160:in `perform_action_without_flash' vendor/bundle/ruby/1.8/gems/actionpack-2.3.18/lib/action_controller/flash.rb:151:in
Re: [gitorious] Can't create LDAP team
Thanks, now it is working the problem was the incomplete group_dn. As soon as I entered the full DN it worked. -- -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Gitorious group. To unsubscribe from this group and stop receiving emails from it, send an email to gitorious+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Re: [gitorious] Can't create LDAP team
frank.g...@gmail.com writes: Hi setup LDAP authentication and authorizatin. I can successfully login with there LDAP account. However, I cannot create a team for the LDAP groups. In gitorious.yml I have configured use_ldap_authorization: true In authentication.yml I have configured - adapter: Gitorious::Authentication::LDAPAuthentication host: ad.mycompany.com port: 636 base_dn: DC=mycompany,DC=com group_search_dn: OU=Security Groups,OU=All Groups login_attribute: sAMAccountName bind_user: username: ldapuser password: geheim membership_attribute_name: memberof members_attribute_name: member Now I try to create a team for the AD group CN=RD,OU=Security Groups,OU=All Groups,DC=mycompany,DC=com The admin page ask me to enter a DN Enter LDAP group DNs, one per line *Note:* entries should be relative to the LDAP base DN I tried different versions of the group name but always ended up with Sorry something went wrong. I had no luck, with - CN=RD,OU=Security Groups,OU=All Groups - CN=RD - CN=RD,OU=Security Groups,OU=All Groups,DC=mycompany,DC=com - RD I also tried groups without special characters Any hints what went worng or where to look for mor information. Yes, log/production.log should have some details about what failed. Cheers, - Marius -- -- To post to this group, send email to gitorious@googlegroups.com To unsubscribe from this group, send email to gitorious+unsubscr...@googlegroups.com --- You received this message because you are subscribed to the Google Groups Gitorious group. To unsubscribe from this group and stop receiving emails from it, send an email to gitorious+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.